Comment 7 for bug 91890

Revision history for this message
Pankrat (wkx) wrote :

I have the same problem as the OP on Ubuntu Gutsy using DHCP. Furthermore, I can't find the location where network-manager keeps the DNS server setting except for /etc/resolv.conf which is rewritten whenever I (re)connect to my network. If I run 'dhclient eth1' manually, the file is rewritten as well, with the added DNS server lost or replaced by the one returned by the DHCP server. Using a static IP address the DNS settings are kept in /etc/resolv.conf on my machine, so I can't confirm the behaviour russofris reported.

Using DHCP the "real" solution is certainly to set the DNS server in the DHCP server (if you have access to it) or to use the workaround described by Roderick Drew. In so far one could argue that it's not a bug. However, the nm-applet interface gives the impression that it can override the DNS setting; and that actually works, except that network-manager can't keep that information over multiple sessions.

If network-manager is designed to work that way, I think the behaviour should at least be documented.

It might even make sense to implement the DNS/DHCP workaround described by Roderick Drew in the network-manager (with the addition of "domain-name" for search domains). OTOH, this might also not be what the user expects, e.g. when roaming is activated.

Thanks for dealing with this issue.