edits to resolv.conf lost on dhcp update
Bug #24826 reported by
mhosken
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.
To post a comment you must log in.
(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 : ------- ------- XXX.XXX, YYY.YYY. YYY.YYY, ZZZ.ZZZ. ZZZ.ZZZ; ------- -------
-------
prepend domain-name-servers XXX.XXX.
-------
to preserve your change...
I think it is impossible to distinct $old_name_servers and added_name_ servers.
$manually_