Date: Fri, 6 Apr 2007 18:39:00 -0800 From: Beech Rintoul <beech@alaskaparadise.com> To: freebsd-questions@freebsd.org Cc: Tsu-Fan Cheng <tfcheng@gmail.com> Subject: Re: resolve.cong Message-ID: <200704061839.04096.beech@alaskaparadise.com> In-Reply-To: <f84c38580704061908g6fd632cbvb442f6ee66552b80@mail.gmail.com> References: <f84c38580704061908g6fd632cbvb442f6ee66552b80@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 06 April 2007, Tsu-Fan Cheng said: > hi, > my computer gets DHCP IP from my router, and also writes my > resolve.confin my /etc by dhclient (as I learned from the > handbook). It writes "search > hsd1.md.comcast.net." and "nameserver 192.168.0.1" in the > resolve.conf. I found this is not very efficient. Once I put > "nameserver 68.87.73.242" (which is actually copied from the router > status), my network works better. But since dhclient keeps change > the conf file back to the way it was, Is there anyway i can make > dhclient writes down this line?? thank you!! > > TFC Put the following into /etc/dhclient.conf changing the interface to yours: interface "ath0" { supersede domain-name-servers 68.87.73.242; } See man(5) dhclient.conf for more options. Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - Port Maintainer - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.freebsd.org/releases/6.2R/announce.html ---------------------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704061839.04096.beech>