![]() ![]() If you use resolvconf make sure to run ls /run/resolvconf/interfaces to see what's there. I hope this helps others with debugging (the complex interactions between all these different network tools) as well. Just removing this file (and running sudo resolvconf -u afterwards) solved my dns troubles: cat /etc/nf The culprit was a file not removed with the deinstallation of dnsmasq: cat /run/resolvconf/interface/lo.dnsmasq However, it turns out to be the case that if there are multiple files in this directory, this file might not be used at all. The information resolvconf does use from the NetworkManager was present: cat /run/resolvconf/interface/NetworkManager ![]() It doesn't matter how often I run sudo resolvconf -u or sudo dpkg-reconfigure resolvconf, it didn't update the nameserver to the ones I set in the NetworkManager. # DO NOT EDIT THIS FILE BY HAND - YOUR CHANGES WILL BE OVERWRITTEN # Dynamic nf(5) file for glibc resolver(3) generated by resolvconf(8) Currently my system had the following contents of /etc/nf (which is a symbolic link to /run/resolvconf/nf on my system): cat /etc/nf ![]() I've been using dnsmasq for a while, but deinstalled it. It might be worthwhile to know the following. Most of the above assumes you have a pristine system, but reality is often such that you have been installing different dhcp clients, disabled the network manager in certain previous version of Ubuntu, etc. I hope this helps out and makes it easier as it does for me, now we can create static IP addresses and add in nameservers and dns domain all in one file :) The same configurations that you would have written to nf can now be in the same file as your network adapter configurations as in the example below: # The loopback network interface Below I will show you the best way that I have found since I run Ubuntu Server edition and use ifup rather than NetworkManager.Īctually for me they made this easier :) by putting it all into the /etc/network/interfaces file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |