From owner-freebsd-questions Sat Mar 10 21:32:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-server1.tampabay.rr.com (smtp-server1.tampabay.rr.com [65.32.1.34]) by hub.freebsd.org (Postfix) with ESMTP id 9A08037B718 for ; Sat, 10 Mar 2001 21:32:06 -0800 (PST) (envelope-from meconlen@obfuscated.net) Received: from clarity (24129168hfc216.tampabay.rr.com [24.129.168.216]) by smtp-server1.tampabay.rr.com (8.11.2/8.11.2) with SMTP id f2B4cD016057; Sat, 10 Mar 2001 23:38:13 -0500 (EST) From: "Michael Conlen" To: "Will Yardley" , Subject: RE: resolv.conf / dhcp Date: Sat, 10 Mar 2001 23:32:43 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-reply-to: <3AAAC5A7.14CC3510@hq.newdream.net> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In your dhclient.conf file in /etc (I think) you can set options to keep some parameters. I, for example, don't use the networks name server, so I set my own there. Ahh, yes. My /etc/dhclient.conf interface "dc0" { supersede domain-name "obfuscated.net"; prepend domain-name-servers 10.0.0.1; supersede host-name "devo"; } You can see where I supersede the domain-name and host-name, as well as prepend my own name server to their list. My resolv.conf comes out as search obfuscated.net nameserver 10.0.0.1 nameserver 65.32.1.70 nameserver 65.32.2.130 -- Groove On Dude Michael Conlen Obfuscated Networking meconlen@obfuscated.net > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Will Yardley > Sent: Saturday, March 10, 2001 7:24 PM > To: questions@freebsd.org > Subject: resolv.conf / dhcp > > > a couple questions about this. > > does anyone have a simple solution to /etc/resolv.conf being overwritten > everytime the dhcp lease is renewed ?? i'm using dhclient and the dhcp > server is an obsd router / firewall > > as far as i know, you can't specify the seach path with dhcpd - > information on how to do this would be even more useful. > > if i just set the resolv.conf file to be immutable or something like > that would that keep it from getting overwritten? i guess that might > generate some weird log messages every day but would be less annoying > than having to edit my resolv.conf file daily. > > anyone used a simple cron job to do this? i guess that might be the > best option - to check every 10 minutes or so and overwrite the file > with a stored copy if the two files differ???? > > please cc me on the response as i'm not on the list anymore for the time > being. > > -will yardley > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message