Date: Sat, 10 Mar 2001 23:32:43 -0500 From: "Michael Conlen" <meconlen@obfuscated.net> To: "Will Yardley" <william@hq.newdream.net>, <questions@freebsd.org> Subject: RE: resolv.conf / dhcp Message-ID: <NFBBJNNKKLIPPJPMCEAPIECNCBAA.meconlen@obfuscated.net> In-Reply-To: <3AAAC5A7.14CC3510@hq.newdream.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBJNNKKLIPPJPMCEAPIECNCBAA.meconlen>
