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

Tarus Balog tarus at opennms.org
Tue Feb 19 10:53:51 EST 2013


On 02/19/2013 09:57 AM, Brian Henning wrote:
> 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 just add a dns-nameservers entry to /etc/network/interfaces and it
seems to override the DNS sent via DHCP.

-T

-- 
Tarus BALOG, Maintainer                     Main:   +1 919 533 0160
The OpenNMS Group, Inc.                     Fax:    +1 773 345 3645
Email: tarus at opennms.org                    URL: http://www.opennms.org
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C



More information about the TriLUG mailing list