From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 18:45:08 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 A7A7716A407 for ; Mon, 15 Jan 2007 18:45:08 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from regulus.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 67D7613C44B for ; Mon, 15 Jan 2007 18:45:08 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by regulus.dfwlp.com (8.13.8/8.13.8) with ESMTP id l0FIj2Td033822 for ; Mon, 15 Jan 2007 12:45:02 -0600 (CST) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Mon, 15 Jan 2007 12:45:01 -0600 User-Agent: KMail/1.9.5 References: <20070115145736.16000.qmail@web59204.mail.re1.yahoo.com> <45ABC21E.1060802@chapman.edu> <45ABC65D.2060503@u.washington.edu> In-Reply-To: <45ABC65D.2060503@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701151245.02002.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on regulus.dfwlp.com Subject: Re: DNS Resolver Problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 18:45:08 -0000 On Monday 15 January 2007 12:22, Garrett Cooper wrote: > Jay Chandler wrote: > > linux quest wrote: > >> I have a problem with the DNS setting in FreeBSD. Every 1 hour, I > >> will not be able to ping google.com (because I need to type in my > >> ISP's DNS into /etc/resolv.conf) May I know what is the best solution > >> for this, so that I do not have to type in my ISP's DNS to the > >> resolver all the time? Perhaps, should I set a static IP > >> configuration? If so, may I know which file should I modify? > >> Thanks. > > > > Their DNS changes hourly? What the heck ISP are you using that pulls > > such things? > > > > Or do you mean to say that you're on DHCP, and when it renews the > > lease it clears out DNS info? > > 1. Could we see any relevant options in rc.conf related to network > configuration (interface_*, dns, DHCP, etc). > 2. Could you provide your /etc/resolv.conf? > 3. Have you tried contacting your ISP about this? Maybe their DHCP > settings are skewed. > -Garrett i would also recommend you take a look at /etc/dhclient.conf (and man page). i edited mine to prevent alternate DNS settings that i put into my resolv.conf file from being overwritten by the DHCP server each time i renew my lease. hth, jonathan