Cannot prevent DHCP from overwriting resolv.conf (DNS servers)

Bug #67841 reported by Manuel López-Ibáñez
4
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

It seems that dhcp takes my router IP 192.168.1.1 as the ip of DNS servers. However, this doesn't work:

$ dig @192.168.1.1 google.es
;; reply from unexpected source: 62.31.64.39#53, expected 192.168.1.1#53

I added the DNS servers manually at:

System Settings->Network Settings->DomainNameSystem

However, they are overwritten everytime that DHCP is updated.

I finally fixed it by editing:

$ sudo nano /etc/dhcp3/dhclient.conf

and adding:

prepend domain-name-servers 62.31.64.39;

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.