From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 14:47:26 2004 Return-Path: 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 1759D16A4CE for ; Sat, 24 Jan 2004 14:47:26 -0800 (PST) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id A25C443D2D for ; Sat, 24 Jan 2004 14:47:22 -0800 (PST) (envelope-from micheal@tsgincorporated.com) Received: from dredster ([68.12.79.37]) by lakemtao05.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040124224722.OIGA29834.lakemtao05.cox.net@dredster>; Sat, 24 Jan 2004 17:47:22 -0500 Message-ID: <157b01c3e2cc$22edee50$0201a8c0@dredster> From: "Micheal Patterson" To: , References: <20040124173756.5F33.GERARD-SEIBERT@rcn.com> Date: Sat, 24 Jan 2004 16:48:04 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Problem With Configuring Name Servers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 22:47:26 -0000 ----- Original Message ----- From: "Gerard Seibert" To: Sent: Saturday, January 24, 2004 4:40 PM Subject: Problem With Configuring Name Servers > I am fairly new to BSD. I seem to be having a problem setting up my name servers correctly. > > I have the following in the resolv.conf file: > > domain rcn.com > nameserver 207.172.3.8 > nameserver 207.172.3.9 > > The following entry is in the re.conf file > > ifconfig_rl0="DHCP" > > Everything, including nslookup, etc works fine until I reboot. Then the files are over written. The resolv.conf file then has the following entries: > > search cable.rcn.com > nameserver 192.168.0.1 > > Obviously, I am doing something incorrectly here. Why are these files being rewritten upon rebooting of the machine, and how do I stop it. I have a cable connection that uses "DHCP" . I have the latest release of FreeBSD 5.2 installed. > > Thanks in advance. > > Gerard Seibert > gerard-seibert@rcn.com > > In /etc there will be a file called dhclient.conf. If it doesn't exist, create it and add the following: interface "rl0" { prepend domain-name-servers 207.172.3.8; prepend domain-name-servers 207.172.3.9; request subnet-mask, broadcast-address, routers, domain-name-servers ; require subnet-mask, broadcast-address, routers ; } What this will do is take the information that is provided during the dhcp initialization and add the above to the information it recieves from the server. If you don't want to use any of the name servers provided by dhcpd, remote the domain-name-servers portion from the request entry. If you need any further specifics, check out man dhclient.conf for other options to add to this file. I think that this will do what you're looking for though. -- Micheal Patterson Network Administration TSG Incorporated 405-917-0600