From owner-freebsd-questions Fri Aug 30 6: 0:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E72CF37B400 for ; Fri, 30 Aug 2002 06:00:47 -0700 (PDT) Received: from sixshooter.v6.thrupoint.net (sixshooter.v6.thrupoint.net [65.242.152.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FB0443E6A for ; Fri, 30 Aug 2002 06:00:47 -0700 (PDT) (envelope-from jpb@sixshooter.v6.thrupoint.net) Received: by sixshooter.v6.thrupoint.net (Postfix, from userid 1000) id 193F4107A3; Fri, 30 Aug 2002 09:00:46 -0400 (EDT) Date: Fri, 30 Aug 2002 09:00:46 -0400 From: Jim Brown To: FreeBSD Questions Subject: Re: Changing default DNS server Message-ID: <20020830130045.GB82632@sixshooter.v6.thrupoint.net> Mail-Followup-To: FreeBSD Questions References: <4.2.0.58.20020826141711.0094fc70@192.168.0.25> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Unix Tools [2002-08-30 08:50]: > check the /etc/resolv.conf for the nameservers list > > > ----- Original Message ----- > From: "Lord Raiden" > To: "FreeBSD Questions" > 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