PDA

View Full Version : [ubuntu] automatically assigns wrong DNS server



altgrrr
November 3rd, 2008, 09:22 PM
My problem is Ubuntu assigns me three DNS servers but I want to skip one of them being assigned.




The vital part of my /etc/dhcp3/dhclient.conf is:


request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;
timeout 30;





This results in the following /etc/resolv.conf:

# generated by NetworkManager, do not edit!

search Belkin

nameserver 192.168.2.1
nameserver 83.255.245.10
nameserver 83.255.249.10

I have a Belkin router and its IP is 192.168.2.1
The last two DNS-servers are the correct ones used by my isp.

When using the above resolv.conf, looking up addresses are really slow, but when I remove the router IP things speed up to normal. What can I do to automatically have only the last two DNS-servers assigned???

I know of course that I can specify them manually in the dhclient.conf (prepend domain-name-server) but I want to use my computer at different places (not just at home, it's a laptop) so I would like to instead always skip using 192.168.2.1 as DNS server.

anyone? :KS

The router shouldn't be the problem since I use Windows computers on it and that causes no DNS issues.