From owner-freebsd-questions@FreeBSD.ORG Sat Apr 7 02:39:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E0D416A405 for ; Sat, 7 Apr 2007 02:39:11 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from stargate.alaskaparadise.com (7-137-58-66.gci.net [66.58.137.7]) by mx1.freebsd.org (Postfix) with ESMTP id 3118313C489 for ; Sat, 7 Apr 2007 02:39:09 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id 3770D7D94; Fri, 6 Apr 2007 18:39:08 -0800 (AKDT) From: Beech Rintoul Organization: FreeBSD Port Maintainer To: freebsd-questions@freebsd.org Date: Fri, 6 Apr 2007 18:39:00 -0800 User-Agent: KMail/1.9.6 References: In-Reply-To: X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704061839.04096.beech@alaskaparadise.com> Cc: Tsu-Fan Cheng Subject: Re: resolve.cong X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: beech@alaskaparadise.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 02:39:11 -0000 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 ---------------------------------------------------------------------------------------