[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
*** This bug is a duplicate of bug 90681 *** https://bugs.launchpad.net/bugs/90681 ** Also affects: dhcp3 (Ubuntu) Importance: Undecided Status: New -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
*** This bug is a duplicate of bug 90681 *** https://bugs.launchpad.net/bugs/90681 Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #90681, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find. ** This bug has been marked a duplicate of bug 90681 resolv.conf overwritten using VPN/PPP etc... -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
Confirming the bug and the work around given by claud_j_greengrass. Though I am wondering if I will ever need to enable it? -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
This is strongly related to my recently-reported bug #159114, where I originally thought the problem was with KNetworkManager, before spotting that it's delegating to NetworkManager. There was no appropriate supersede line in /etc/dhcp3/dhclient.conf on my system until I added one by hand, along the lines of: supersede domain-name-servers 1.2.3.4,5.6.7.8; I would have liked NetworkManager to put it there for me when I added the DNS servers there, but it didn't! See the referenced bug for more information about my (very simple) configuration. This is using 7.10, by the way. -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
A not so nice work-around is to edit /sbin/dhclient-script and comment out the line mv -f $new_resolv_conf /etc/resolv.conf then restart networking. Your settings, if any, from /etc/dhcp3/dhclient.conf will now appear in resolv.conf and dhclient will stop overwriting it. /sbin/dhclient-script appears to be a duplicate of /etc/dhcp3/dhclient- script. Can anyone suggest why there are two copies of this script? This is just a work-around. The real problem appears to be in dhclient and it ignoring the prepend domain-name-servers and supersede domain- name-servers some time after a restart. When first initialized, dhclient will put the correct information into resolv.conf, but later, some 10-15 mintues or so, dhclient looks at your router/cable modem and clobbers resolv.conf with the information for it. -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
bug confirmed. as a temp workaround, one can use a script that adds the name servers back to the /etc/resolv.conf file. echo nameserver {dns-address1-goes-here} /etc/resolv.conf echo nameserver {dns-address2-goes-here} /etc/resolv.conf and run this script using sudo after each time the VPN is connected. annoying, but works. -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 126592] Re: resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins
I can confirm this bug... is there any good workaround? -- resolv.conf overwritten on dhcp renew when using NetworkManager vpn plugins https://bugs.launchpad.net/bugs/126592 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs