From owner-freebsd-net@freebsd.org Wed Mar 22 01:34:55 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED3D4D17332 for ; Wed, 22 Mar 2017 01:34:55 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from tissa.komkon.org (tissa.komkon.org [52.5.170.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "komkon.org", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B76E51747 for ; Wed, 22 Mar 2017 01:34:55 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from auth (localhost [127.0.0.1]) by tissa.komkon.org (8.15.2/8.15.2) with ESMTPSA id v2M1Yl5C025082 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Mar 2017 21:34:48 -0400 (EDT) (envelope-from freebsd@str.komkon.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=str.komkon.org; s=mail; t=1490146490; bh=16oZ8PS6Dz4rFFXR3q8A18iUuB4VLqlgtQFNhiumauo=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=Hud9pxLJDaS4gXrh69jq3tV2oTO/KVrer6moYm+nyNH7mDPzzTi1BZeKl5iCJ+oPQ hMMIDs2mZOtjyzx9wdST6p2oUqnPblswiVFb/5v5vQbfn7v2gAY02AJW6cf1uAS4lE znh54exzLdtxzArPc8c0/yY+7B8XjN5knsJw2S6c= Date: Tue, 21 Mar 2017 21:34:47 -0400 (EDT) From: "Igor R." To: Eric van Gyzen cc: freebsd-net@freebsd.org Subject: Re: multiple nameservers in resolvconf.conf In-Reply-To: <0b82f5db-810e-6076-2587-e687b6ce7f5e@vangyzen.net> Message-ID: References: <0b82f5db-810e-6076-2587-e687b6ce7f5e@vangyzen.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Virus-Scanned: clamav-milter 0.99.2 at tissa.komkon.org X-Virus-Status: Clean X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 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, 22 Mar 2017 01:34:56 -0000 Yes! That worked! Thank you, Eric! I don't know how I didn't think about it... Igor On Tue, 21 Mar 2017, Eric van Gyzen wrote: > On 3/21/17 4:52 PM, Igor R. wrote: >> >> How one can specify multiple name servers in each of the >> following options in resolvconf.conf: (note, it is not resolv.conf!) >> https://www.freebsd.org/cgi/man.cgi?query=resolvconf.conf&sektion=5 >> >> append_nameservers >> and >> prepend_nameservers ? >> >> >> Even though the options have "nameservers" in plural, I could not find >> any example anywhere on the net that would indicate multiple values for >> these two options. >> >> I've tried >> append_nameservers=127.0.0.1, 192.168.15.2 >> append_nameservers=127.0.0.1,192.168.15.2 >> append_nameservers=127.0.0.1 192.168.15.2 >> append_nameservers=127.0.0.1; 192.168.15.2 >> as well as specifying them on separate lines: >> append_nameservers=127.0.0.1 >> append_nameservers=192.168.15.2 >> >> These different version yield 3 different outcomes, but none of them >> produces resolv.conf (upon running resolvconf -u) with both servers in >> there. > > The config file is in /bin/sh syntax, so I imagine it would be: > > append_nameservers='127.0.0.1 192.168.15.2' > > Give that a shot. > > Eric >