From owner-freebsd-questions@FreeBSD.ORG Tue Aug 7 13:42:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4503E106566B for ; Tue, 7 Aug 2012 13:42:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id C1F568FC0A for ; Tue, 7 Aug 2012 13:42:02 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q77DftQA052250 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 7 Aug 2012 14:41:56 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q77DftQA052250 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1344346916; bh=8pxWKlvu0WcTrGGBxxjDfXqQZhURIqZ5TVI2KXWDcyg=; h=Date:From:To:Subject:References:In-Reply-To:Cc:Content-Type: Message-ID:Mime-Version; b=Id733ikfF4daY2azSTTYEWTy3BAwZpArCzpPYe99NMGwok/iEB+Tye+QSlN5xC3U/ /gOtZFRq0/pH/fOa2FveiLmmZUUKPF9rlMB7iRBosqTAn6ZnoGlci8yN1zTePRebR8 jSiSwh3ekXyCooRM5Vh/58OJaiOoAQNaXyJLkXiw= Message-ID: <50211B1A.3090101@infracaninophile.co.uk> Date: Tue, 07 Aug 2012 14:41:46 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.4.3 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig01A5DB26CAA48120D7D73610" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_ADSP_ALL,DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: Openresolv Config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 13:42:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig01A5DB26CAA48120D7D73610 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/08/2012 14:05, Iqbal Aroussi wrote: > Can you please give some hints on configuring Openresolv on FreeBSD-9 > My server is configured with DHCP, but I want to change the nameservers= in > /etc/resolv.conf to use mein. I'm not sure that Openresolv is necessarily the right thing to use. This is how you would override the resolvers handed out to you by a DHCP server using dhclient. Edit the file /etc/dhclient.conf and add lines like so: interface "em0" { supersede domain-name-serves 192.0.2.1, 192.0.2.2; } Obviously, substitute the correct interface name and the IP numbers of your own DNS servers. There's also 'prepend' instead of 'supersede,' which allows you to stick your nameservers in as the preferred choice, but still keep the original ones as a fallback. See dhclient.conf(5). This assumes you've only got the one ethernet interface being configured by DHCP, and that you always want to use your own nameservers irrespective of what network you're connecting to. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig01A5DB26CAA48120D7D73610 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAhGyMACgkQ8Mjk52CukIwJYgCdFCsxYG2zpykxpBgPeM3d5SN5 NdgAn31pHpTUNl1vkuXBzmbniE1vZwMv =kdJZ -----END PGP SIGNATURE----- --------------enig01A5DB26CAA48120D7D73610--