From owner-freebsd-questions Mon Aug 26 12:48: 6 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 1E9A837B40E for ; Mon, 26 Aug 2002 12:47:30 -0700 (PDT) Received: from relay02.cablecom.net (relay02.cablecom.net [62.2.33.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6242943E4A for ; Mon, 26 Aug 2002 12:47:28 -0700 (PDT) (envelope-from mlist@stable.ch) Received: from smtp.swissonline.ch (mail-4.swissonline.ch [62.2.32.85]) by relay02.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g7QJlQWs022722; Mon, 26 Aug 2002 21:47:26 +0200 (CEST) (envelope-from mlist@stable.ch) Received: from rock.stable.ch (dclient217-162-34-199.hispeed.ch [217.162.34.199]) by smtp.swissonline.ch (8.11.6/8.11.6/SMTPSOL/AWF/2002040101) with ESMTP id g7QJlKH11584; Mon, 26 Aug 2002 21:47:25 +0200 (MEST) Received: from mlist by rock.stable.ch with local (Exim 3.33 #1) id 17jPpX-0006m1-00; Mon, 26 Aug 2002 21:47:19 +0200 Date: Mon, 26 Aug 2002 21:47:19 +0200 From: Thomas Spreng To: Lord Raiden Cc: freebsd-questions@freebsd.org Subject: Re: Changing default DNS server Message-ID: <20020826214719.A25382@rock.stable.ch> 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 User-Agent: Mutt/1.2.5i In-Reply-To: <4.2.0.58.20020826141711.0094fc70@192.168.0.25>; from raiden23@netzero.net on Mon, Aug 26, 2002 at 02:21:04PM -0400 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 On Mon, Aug 26, 2002 at 02:21:04PM -0400, Lord Raiden wrote: > 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. > > Thanks all. > Hello, since you're running dhclient you have to tell it to override or prepend the dns server addresses that you're getting from the dhcp server. 'man dhclient.conf' is your friend. Here is how it looks in my dhclient.conf: interface "fxp1" { prepend domain-name-servers 127.0.0.1; } after changing your config, restart the dhclient process and check your /etc/resolv.conf if it worked. Bye To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message