dhcpcd does give me an IP on my local network, but then decides that I am unworthy of internet (temporary failure in name resolution) and autogenerates a resolv.conf. The autogeneration gives:
# Generated by dhcpcd from enp5s0.dhcp, enp5s0.dhcp6, enp5s0.ra
# /etc/resolv.conf.head can replace this line
domain hsd1.co.comcast.net.
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
# /etc/resolv.conf.tail can replace this line
The line doman hsd1.co.comcast.net.
has a trailing period, and removing it causes my network to work. Also what causes my network to work is creating a /etc/resolv.conf.head with the line nameserver 1.1.1.1
.
When I modify a resolv.conf, it’ll be overwritten by the buggy default in about 10 seconds. This occurs regardless of whether the dhcpcd service is actually running (runit on Void Linux) or if it is disabled.
Ideally I would like dhcpcd to just work. My current solution of /etc/resolv.conf.head seems hacky and just generally-not-all-that-great.
I’m also curious how my “solution” does anything at all, given that it isn’t changing or overriding the errored line in any way.
What do I do to make my system just slightly less cursed? Thanks!
Edit: resolv.conf decided to clear itself for no apparent reason. I went in and edited it to just “nameserver 1.1.1.1” and after quitting the editor and waiting a few seconds, I catted out the file to see:
# Generated by dhcpcd from enp5s0.dhcp, enp5s0.dhcp6, enp5s0.ra
nameserver 1.1.1.1
nameserver 1.1.1.1
domain hsd1.co.comcast.net.
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
# /etc/resolv.conf.tail can replace this line
domain hsd1.co.comcast.net.
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
# /etc/resolv.conf.tail can replace this line
Edit, 10 seconds later:
# Generated by dhcpcd from enp5s0.dhcp, enp5s0.dhcp6, enp5s0.ra
nameserver 1.1.1.1
domain hsd1.co.comcast.net.
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
# /etc/resolv.conf.tail can replace this line