Article View: linux.gentoo.user
Article #213Re: [gentoo-user] /etc/resolv.conf.head being ignored
From: 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
Technical Details
Message-ID:
<O2CqZ-dG1h-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O2BEC-dFz6-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Wolfgang Müller <wolf@oriole.systems> Newsgroups: linux.gentoo.user Subject: Re: [gentoo-user] /etc/resolv.conf.head being ignored Date: Mon, 23 Nov 2026 14:40:01 +0100 Message-ID: <O2CqZ-dG1h-1@gated-at.bofh.it> References: <O2BEC-dFz6-3@gated-at.bofh.it> X-Original-To: gentoo-user@lists.gentoo.org Mail-Followup-To: gentoo-user@lists.gentoo.org List-ID: Gentoo Linux mail <gentoo-user.gentoo.org> Reply-To: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 14:32:00 +0100 X-Original-Message-ID: <awQ5e2Rm8Eldfqxh@kestrel> X-Original-References: <491b79cc-253e-48ff-8013-702ad2b1109f@kenworthy.id.au>