Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Nov 2004 08:37:30 +0300
From:      JohnsoBS@vicksburg.navy.mil
To:        bsd-questions@andsmith.com, freebsd-questions@freebsd.org
Subject:   RE: DHCP & nameservers
Message-ID:  <CE2BFBAA80DD874BB737A4E2C53AA44903B01A4E@CG69UBD01>

next in thread | raw e-mail | index | archive | help
Edit /sbin/dhclient-script and comment out the

make_resolve_conf() {
<snip>
}

This will take out the portion of the script that edits resolve.conf

"People will accept your idea much more readily if you tell 
them Benjamin Franklin said it first." 

> -----Original Message-----
> From: Andrew Smith [mailto:bsd-questions@andsmith.com]
> Sent: Saturday, November 13, 2004 7:26 AM
> To: freebsd-questions@freebsd.org
> Subject: DHCP & nameservers
> 
> 
> I'm using my FreeBSD box as the gateway machine for my cable modem. 
> Obviously the cable modem side has to be set as DHCP, which 
> automaticlly 
> sets the DNS nameservers in resolve.conf.
> 
> However I am running a caching name server on the box, and 
> would like to 
> have resolve.conf only point to local host.  Is there any way 
> to keep DHCP 
> from updating resolve.conf?
> 
> Thanks in advance,
> 
> Andrew 
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CE2BFBAA80DD874BB737A4E2C53AA44903B01A4E>