[TriLUG] Ignoring certain DHCP options (specifically, DNS)

Brian McCullough bdmc at bdmcc-us.com
Tue Feb 19 10:14:28 EST 2013


On Tue, Feb 19, 2013 at 09:57:40AM -0500, Brian Henning wrote:
> Hi group,
> 
> So anyway, that's exactly what I want to do; I want to use 8.8.8.8 /
> 8.8.4.4.  Problem is, any time my public DHCP lease expires, dhclient
> rewrites my resolv.conf with the DNS option from the new DHCP lease,
> pointing me back to TWC's servers.
> 
> I've done some searching and I see references to modifying dhclient.conf,
> but my system (CentOS 5.8) doesn't have one (so apparently dhclient is
> operating completely on defaults?).

Are you sure that it isn't in some odd location?  ( find / -name
dhclient.conf )

I have two different files located in /etc/dhcp3 and /etc/dhcp.


Do you have all of the relevant packages installed?

I have dhcp3-client, dhcp3-common, isc-dhcp-client and isc-dhcp-common.
( Debian world )


If necessary, I could send you mine from /etc/dhcp, which is probably
the one that you are looking for.  It also has the modification for
8.8.8.8, etc.


Brian





More information about the TriLUG mailing list