On 29/04/07, Roderick Drew <email address hidden> wrote:
> There seems to be a workaround which I stumbled upon somewhere herein.
> One can enter DNS name-servers by adding the following line to
> /etc/dhcp3/dhclient.conf:
>
> prepend domain-name-servers 192.168.60.1, 172.16.254.2;
>
> (The name-servers above are obviously examples)
>
> Those name servers will always be placed first in /etc/resolve.conf
>
> It has worked for me so far with no apparent ill side-effects.
>
> --
> Custom DNS settings lost on boot
> https://bugs.launchpad.net/bugs/91890
> You received this bug notification because you are a direct subscriber
> of the bug.
>

I am experiencing the same. Manual network config, set static IP, GW, and netmask. Manually set DNS servers. Upon reboot, the DNS servers revert the ones that would have been picked up by DHCP. Problem is... I'm not using DHCP. I have to configure my DNS servers every reboot. Had the same issue with 7.04.

Also, just for the sake of my own sanity... Can someone please explain why this defect is marked incomplete? If you're going to mark a defect as incomplete, please put in a comment as to why. Especially since this is a show stopping bug.

Not sure if it helps anyone but I had previously flashed the bios of my linksys router to the alchemy version.

The last time I lost network connectivity I went into the router admin and it had lost its IP address and DNS settings.
It was still able to serve internet for an XP machine, but not my ubuntu.
Releasing/Renewing the routers DHCP config restarted network connectivity in ubuntu.

Dont know why xp carried on working and Ubuntu didnt (I use static IP and the ISP's DNS servers in the IP config for each OS)

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.

I experience the same annoying issue.
The workaround provided by Roderick Drew works but I absolutely agree with all others here, that it would be nice to be able to define static dns-servers for any (W)LAN listet by NetworkManager that take precendence over those sent by DHCP (ok, this part is already possible). However these settings really should be kept upon NetworkManager restart!

"low Importance", This is a very frustrating bug, it's anything but low importance, it also shows why Linux can't work as a desktop computer yet, because an average user shouldn't be editing config files(even tho this doesn't work for me because I don't use DHCP)

I found another way to "solve" this bug.
I 've edited /etc/resolvconf/resolv.conf.d/base, and added a line with "nameserver xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx", where "x" needs to be replaced by your ips numbers.
Then you can run resovconf -u, this will write the content of base into resolv.conf, you can check if it's ok. Restart the networking services (/etc/init.d/networking restart), or reboot the machine.
It has worked for me.

seems this bug didn't fix until now
i have to set the dns and default route every time after reboot
if this bug will be fixed or not?

establish 2 new connections,set the ip&mask for them,add a default route,set the nameserver in resolv.conf
pc can connect to internet successfully
after reboot
connection auto eth0 and auto eth3 were up,they get ip,dns by dhcp,now,in resolv.conf,the name server change to which was got form dhcp server,the default route was lost
change the connections created by me,in resolv.conf,not any nameserver

Confirmed again. Today I've installed Intrepid on another machine. Had to enter DNS settings for my wired connection manually (in XP it is unnecessary - I don't know what is with that connection). I opened NM, set DHCP with custom-set DNS in the IPv4 tab and everything was fine until reboot. Connection was reset to pure DHCP, DNS settings were lost.