Thread View: linux.gentoo.user
2 messages
2 total messages
Started by William Kenworthy
Mon, 23 Nov 2026 12:50
[gentoo-user] /etc/resolv.conf.head being ignored
Author: William Kenworthy
Date: Mon, 23 Nov 2026 12:50
Date: Mon, 23 Nov 2026 12:50
11 lines
1675 bytes
1675 bytes
Hi, for a few weeks Ive noticed that some machines are not updating /etc/resolv.conf from /etc/resolv.conf.head. My current suspicion is that systems using dhcpcd are working, while those using netifrc are not. Has anyone seen this before? BillK
Re: [gentoo-user] /etc/resolv.conf.head being ignored
Author: Wolfgang Mรผller
Date: Mon, 23 Nov 2026 13:40
Date: Mon, 23 Nov 2026 13:40
32 lines
2435 bytes
2435 bytes
Hi,
> for a few weeks Ive noticed that some machines are not updating
> /etc/resolv.conf from /etc/resolv.conf.head.
Nowadays, what /etc/resolv.conf even is (regular file or symlink), or
how it is put together is very complicated.
> My current suspicion is that systems using dhcpcd are working, while
> those using netifrc are not.
Support for /etc/resolv.conf.{head,tail} depends entirely on the program
used to update or manage /etc/resolv.conf, so your suspicion is correct;
dhcpcd supports /etc/resolv.conf.head directly whilst netifrc alone does
not.
netifrc may create /etc/resolv.conf if given a static address alongside
a DNS server and search domain, but it will not ever read
/etc/resolv.conf.{head,tail}. However, if netifrc is configured with the
dhcp USE flag, it may use net-misc/dhcpcd (among others, like
net-misc/dhcp, or sys-apps/busybox) to facilitate DHCP. So, if dhcpcd is
used through netifrc, dhcpcd would honor those files again.
Furthermore, if net-dns/openresolv is installed, both netifrc and dhcpcd
will use that to configure /etc/resolv.conf if needed. Then,
/etc/resolvconf.conf is also important. From what I can see, openresolv
also supports /etc/resolv.conf.{head,tail}.
I hope this helps narrow down the issue.
--
wolf
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads