edits to resolv.conf lost on dhcp update

Bug #24826 reported by mhosken
30
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

If a users wants to add other nameservers to /etc/resolv.conf, dhcpclient3
deletes them on the next dhcp update. Instead it should merely replace the
$old_name_servers with the $new_name_servers in the same relative order with
whatever is currently there. If /etc/resolv.conf is empty, it should add the values.

Revision history for this message
Emonib (emonib) wrote :

(In reply to comment #0)
> If a users wants to add other nameservers to /etc/resolv.conf, dhcpclient3
> deletes them on the next dhcp update. Instead it should merely replace the
> $old_name_servers with the $new_name_servers in the same relative order with
> whatever is currently there. If /etc/resolv.conf is empty, it should add the
values.

Just put this line in /etc/dhcp3/dhclient.conf :
---------------------
prepend domain-name-servers XXX.XXX.XXX.XXX,YYY.YYY.YYY.YYY,ZZZ.ZZZ.ZZZ.ZZZ;
---------------------
to preserve your change...

I think it is impossible to distinct $old_name_servers and
$manually_added_name_servers.

Revision history for this message
Someone (s4910321931-deactivatedaccount) wrote :

resolvconf package is your friend

Revision history for this message
Ted (tedks) wrote :

This is the intended behaviour -- it can be changed via configuration. Also, this bug is from a neolithic version of Ubuntu. Therefore, I'm marking this as invalid.

Changed in dhcp3:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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