From owner-freebsd-questions@FreeBSD.ORG Mon Jan 15 18:42:43 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 EA16616A580 for ; Mon, 15 Jan 2007 18:42:43 +0000 (UTC) (envelope-from chandler@chapman.edu) Received: from calais.chapman.edu (calais.chapman.edu [192.77.116.205]) by mx1.freebsd.org (Postfix) with ESMTP id D3CB113C428 for ; Mon, 15 Jan 2007 18:42:43 +0000 (UTC) (envelope-from chandler@chapman.edu) Received: from [206.211.142.181] (ist181.chapman.edu [206.211.142.181]) by calais.chapman.edu (Postfix) with ESMTP id 9A05C2EA5C; Mon, 15 Jan 2007 10:42:46 -0800 (PST) Message-ID: <45ABCB22.2020809@chapman.edu> Date: Mon, 15 Jan 2007 10:42:42 -0800 From: Jay Chandler User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: linux quest References: <765686.51596.qm@web59203.mail.re1.yahoo.com> In-Reply-To: <765686.51596.qm@web59203.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chapman-MailScanner-Information: Please contact the ISP for more information X-Chapman-MailScanner: Found to be clean X-Chapman-MailScanner-From: chandler@chapman.edu X-Spam-Status: No Cc: freebsd-questions@freebsd.org 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:42:44 -0000 linux quest wrote: > Dear Jay, > > Thanks. That is exactly what I mean (sorry not explaining it > properly). My network is DHCP enabled. When the lease expired, the > resolver is also cleared out. Any ideas how I can configure a static > DNS IP? > > Here is what I think may work (Please correct me if I am wrong)... > Perhaps I should configure a static IP on this client using FreeBSD. > May I know how can I do that, and at the same time, I would also like > to disable DHCP enable settings. > > Thanks again. > > Regards, > Linux Quest > > */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? > > -- > Jay Chandler > Network Administrator, Chapman University > 714.628.7249 / chandler@chapman.edu > Today's Excuse: emissions from GSM-phones > Simple enough to do-- first off, is this box running under a router or some such that you control, or is it getting a public IP through your ISP? If the latter, setting a static IP might come back to haunt you. I suspect from the way you describe it, that you control a local router that's giving bogus DNS information out with its DHCP lease, in which case the simplest fix is to adjust said router so it Doesn't Do That (tm). In any case: http://www.freebsddiary.org/resolv.php should help you out. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler@chapman.edu Today's Excuse: emissions from GSM-phones