domain versus search keywords in resolvconf
Joachim Achtzehnter
Mon Mar 09 21:43:59 2015
Hi Roy,
Not sure if this is primarily an issue with dhcpcd or openresolv, or both.
According to the "resolv.conf" man page, for example here:
http://linux.die.net/man/5/resolv.conf
The domain and search keywords are mutually exclusive.
If more than one instance of these keywords is present,
the last instance wins.
When dhcpcd is configured with:
option domain_name, domain_search
I.e., specifying both in order to handle all kinds of DHCP servers, not
knowing which of the two options the server can provide, dhcpcd
generates a "resolv.conf" file that contains both keywords.
The openresolv scripts fail to normalize these mutually exclusive
keywords, generating a combined file that still contains both.
The Debian resolvconf script, or rather its libc subscriber, normalizes
multiple occurrences of domain and search lines from different
publishers into a single search line. This produces a valid
"resolv.conf" file with only the search keyword, but including all the
information from all the domain and search lines in the various
individual "resolv.conf" files.
Thanks,
Joachim
--
joachima@xxxxxxxxxxxxxx http://www.netacquire.com
Archive administrator: postmaster@marples.name