Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 09:00:46 -0400
From:      Jim Brown <jpb@sixshooter.v6.thrupoint.net>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Changing default DNS server
Message-ID:  <20020830130045.GB82632@sixshooter.v6.thrupoint.net>
In-Reply-To: <OE14Vj5IIxpLNres0x000012b65@hotmail.com>
References:  <4.2.0.58.20020826141711.0094fc70@192.168.0.25> <OE14Vj5IIxpLNres0x000012b65@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Unix Tools <unixtools@hotmail.com> [2002-08-30 08:50]:
> check the /etc/resolv.conf for the nameservers list
> 
> 
> ----- Original Message -----
> From: "Lord Raiden" <raiden23@netzero.net>
> To: "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
> Sent: Monday, August 26, 2002 11:51 PM
> Subject: Changing default DNS server
> 
> 
> > Hi all.  I've got one of my boxes that's using a DNS server that's having
> > some real issues right now and It's causing me no end to grief.  I'd like
> > to tell it to use a different set of DNS servers without having to reboot
> > it as I can't reboot it for the time being due to a number of processes I
> > have running on it.  The DNS is aquired by the machine via DHCP when it
> > first boots.
> >
> > So basically what I want to do is:
> >
> > 1.  Change the current primary and secondary DNS servers loaded into
> > memory which were originally taken from DHCP while the server is running.
> > 2.  Specify manual DNS entries in the system for those machines unable to
> > pull DNS settings from DHCP.


If I read this correctly, you are trying to ensure that a FreeBSD
system, which used DHCP on startup, will be able to use your own (static)
DNS servers you manually configure in /etc/resolv.conf.

Remember that you will have to 1.) re-edit /etc/resolv.conf every time the
system is rebooted, or 2.) provide a script that will reinstall your
desired entries, and place the script into your startup sequence-
anytime after DHCP is run.

See also dhclient(8), dhclient.conf(5) if you are using the stock 
DHCP software supplied with FreeBSD.  There are options in the dhclient.conf
file to do what you want.

HTH,
jpb
===





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020830130045.GB82632>