Cannot prevent DHCP from overwriting resolv.conf (DNS servers)
Bug #67841 reported by
Manuel López-Ibáñez
This bug report is a duplicate of:
Bug #24826: edits to resolv.conf lost on dhcp update.
Edit
Remove
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-
However, they are overwritten everytime that DHCP is updated.
I finally fixed it by editing:
$ sudo nano /etc/dhcp3/
and adding:
prepend domain-name-servers 62.31.64.39;
To post a comment you must log in.