3
1
The DHCP server on a network I use specifies a DNS server that I do not want to use. Is there a way to continue to use DHCP but to modify the provided information or to "blacklist" one (of the three provided) DNS servers?
The client in question is running Ubuntu 10.04. Networking is managed by NetworkManager but I'm not wedded to that. In fact, I don't like it and wouldn't mind a reason to use something else.
Thanks, Matt.
NetworkManager overwrites resolv.conf every time it starts up. – mpm – 2010-07-02T14:27:46.340
@mpm That is true. If you use the gui tools to change it from "Automatic (DHCP)" to "Automatic (DHCP) addresses only" as described in my solution, then network manager will only use DHCP for your IP address and will overwrite resolv.conf with the DNS servers that you give it. You should not directly modify resolv.conf. Use the gui tool. – James T – 2010-07-02T17:48:49.830
Thanks, James. What I really want is a way to use 2 out of the three nameservers from dhcp but specifying them directly is a good enough workaround for the time being. Again, thanks for your help. – mpm – 2010-07-03T00:47:33.730
@mpm glad i could help... even if it wasn't a perfect fix. – James T – 2010-07-03T07:10:38.623