resolvconf script overwrites entries in resolv.conf -
RDNSS/DNSSL related
Mattia Rossi
mrossi at swin.edu.au
Mon Aug 8 06:42:45 UTC 2011
On 05/08/2011 16:52, Doug Barton wrote:
> On 08/04/2011 22:59, Mattia Rossi wrote:
>> Hi all,
>>
>> I've finally patched my 8.2 IPv6 gateway with the RDNSS/DNSSL patches
>> and I'm distributing DNS servers that way now. Works fine, my box
>> running CURRENT picks up the DNS servers and search domains and writes
>> them into /etc/resolv.conf using the resolvconf script.
>>
>> The script anyhow overwrites my previous manual entries in
>> /etc/resolv.conf which I need for my manual IPv4 setup...
>>
>> I think it's an easily fixable bug - haven't looked into it that close
>> atm., but given that the resolvconf script is going to be
>> rewritten/enhanced anyways, that's something to keep in mind.
>> I think that manual entries should always be preferred.
>
> Check 'man resolvconf.conf' for information on name_servers_append. It
> would probably be nice if there was a _prepend equivalent.
>
Okay, finally got around to read that manpage (which I didn't realise
that it existed). So For RDNSS/DNSSL we have now the following manpages
related to resolv.conf: resolvconf(8), resolv.conf(5) (aka. resolver(5))
and resolvconf.conf(5)... Lot's of resolvconfs :-)
Anyhow, the manpage is really not clear about name_servers_append, and
it's not working as expected either:
1) If I put in a comma separated list of nameservers, I'll find that
comma separated list in /etc/resolv.conf under a single "nameserver"
tag. That doesn't work, as it's not a valid entry. Each nameserver needs
to have a "nameserver <host>" entry.
2) If I use multiple name_servers_append entries in
/etc/resolvconf.conf, then only the last entry is used. I don't want
only one DNS server there though, I want all three of them, as I already
had the problem that one or the other didn't work properly.
3) If I read the description for name_servers in resolvconf.conf(5), I
understand that this tag prepends the nameserver to my list. This is not
what happens. Still not sure what actually happens there...
How do I get my 3 manual DNS entries properly into my resolv.conf ?
Mat
More information about the freebsd-net
mailing list