From owner-freebsd-current@FreeBSD.ORG Mon Aug 8 06:42:45 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0466B1065677; Mon, 8 Aug 2011 06:42:45 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo2.cc.swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id 914D28FC1B; Mon, 8 Aug 2011 06:42:44 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo2.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id p786g6i3028147; Mon, 8 Aug 2011 16:42:27 +1000 Message-ID: <4E3F853E.4030201@swin.edu.au> Date: Mon, 08 Aug 2011 16:42:06 +1000 From: Mattia Rossi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: Doug Barton References: <4E3B86C4.7050005@swin.edu.au> <4E3B9346.9000101@FreeBSD.org> In-Reply-To: <4E3B9346.9000101@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org, fbsd@opal.com Subject: Re: resolvconf script overwrites entries in resolv.conf - RDNSS/DNSSL related X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 06:42:45 -0000 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 " 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