From owner-freebsd-net@FreeBSD.ORG Wed Aug 10 23:23:05 2011 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7B5106564A; Wed, 10 Aug 2011 23:23:05 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo3.cc.swin.edu.au (gpo3.cc.swin.edu.au [136.186.1.32]) by mx1.freebsd.org (Postfix) with ESMTP id 972B38FC19; Wed, 10 Aug 2011 23:23:04 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo3.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id p7ANMaTA027691; Thu, 11 Aug 2011 09:22:51 +1000 Message-ID: <4E4312BC.9060106@swin.edu.au> Date: Thu, 11 Aug 2011 09:22:36 +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: Hajimu UMEMOTO References: <4E3B86C4.7050005@swin.edu.au> <4E3B9346.9000101@FreeBSD.org> <4E3F853E.4030201@swin.edu.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, freebsd-net@FreeBSD.org, Doug Barton , fbsd@opal.com Subject: Re: resolvconf script overwrites entries in resolv.conf - RDNSS/DNSSL related X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2011 23:23:05 -0000 On 10/08/2011 17:29, Hajimu UMEMOTO wrote: > Hi, > >>>>>> On Mon, 08 Aug 2011 16:42:06 +1000 >>>>>> Mattia Rossi said: > > mrossi> Anyhow, the manpage is really not clear about name_servers_append, and > mrossi> it's not working as expected either: > > mrossi> 1) If I put in a comma separated list of nameservers, I'll find that > mrossi> comma separated list in /etc/resolv.conf under a single "nameserver" > mrossi> tag. That doesn't work, as it's not a valid entry. Each nameserver > mrossi> needs to have a "nameserver" entry. > > name_servers and name_servers_append is a space separated list of > nameserver. Ahh, okay, that works. Might be worth mentioning in the manpage though. Maybe an example wouldn't be too bad either > > mrossi> 2) If I use multiple name_servers_append entries in > mrossi> /etc/resolvconf.conf, then only the last entry is used. I don't want > mrossi> only one DNS server there though, I want all three of them, as I > mrossi> already had the problem that one or the other didn't work properly. > > You can specify multiple nameservers in name_servers and/or > name_servers_append. Of course, once 1) is solved 2) is redundant. > > mrossi> 3) If I read the description for name_servers in resolvconf.conf(5), I > mrossi> understand that this tag prepends the nameserver to my list. This is > mrossi> not what happens. Still not sure what actually happens there... > > It is strange to me. If you specify name_servers, it should be > prepended to the nameserver list. I've just tried name_servers, and > it did the job as expected, here. Hmm, not sure what happened last time here, but I've tried it now with a single nameserver, a space separated list of nameservers and a mix of name_servers and name_servers_append entries and it worked perfectly. It also eliminated duplicate entries in name_servers and name_servers_append, preferring the one in name_servers. Again, maybe worthwhile mentioning in the manpage. > > mrossi> How do I get my 3 manual DNS entries properly into my resolv.conf ? > > Please specify your 3 servers as space separated list in name_servers > or name_servers_append. > Yes, got it. All good! Thanks to all! Mat