Date: Tue, 07 Aug 2012 14:41:46 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: Openresolv Config Message-ID: <50211B1A.3090101@infracaninophile.co.uk> In-Reply-To: <CALQWEO_=jvuNdLyONAcxfObgeNd0cfK9gcotiZY%2BNhxKMD4q5w@mail.gmail.com> References: <CALQWEO_=jvuNdLyONAcxfObgeNd0cfK9gcotiZY%2BNhxKMD4q5w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
--
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
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50211B1A.3090101>
