<div dir="ltr">Maybe something like this will help: <a href="https://gist.github.com/linuxluser/cf8f967c9ec8167e6fed">https://gist.github.com/linuxluser/cf8f967c9ec8167e6fed</a><div><br></div><div>I tried to keep it minimal. Read the comments and change things to your liking. Again, that conf file applies to the SERVER, which should be running a standard version of dnsmasq, not the one that comes with NetworkManager.</div><div><br></div><div><br></div><div>To address the other problem, NetworkManager has taken control of your /etc/resolv.conf file and will pretty much overwrite it whenever it wants (usually during DHCP renewals). There are ways to work around this, but it's going to start getting complicated. The easiest thing to do would be to turn off network-manager and configure your interfaces via /etc/network/interfaces file instead. Again, this is for the server only. For other machines (clients) on your network, network-manager would probably work just fine. Despite network-manager's insistence that it can be used for servers, there are still issues with that idea (namely, you'd have to do away with all the tried-and-true network configuration files and tools that most use on servers).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 9:15 AM, Thiago Farina <span dir="ltr"><<a href="mailto:tfransosi@gmail.com" target="_blank">tfransosi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Apr 14, 2015 at 11:38 PM, Linux Luser <<a href="mailto:linuxluser@gmail.com">linuxluser@gmail.com</a>> wrote:<br>
> I'm not sure if NetworkManager's version is better or worse for your case.<br>
> My understanding was that it is specifically configured to provide DNS<br>
> services to the localhost only. I think you should install the regular<br>
> dnsmasq for your distro if you are using it as a core service for your whole<br>
> network.<br>
><br>
> On Debian-based systems, for example:<br>
><br>
> $ sudo apt-get install dnsmasq<br>
><br>
</span>After doing this, my /etc/resolv.conf contains only 127.0.0.1.<br>
<br>
I did try updating it by running the following command lines:<br>
<br>
$ sudo dpkg-reconfigure resolvconf<br>
<br>
And<br>
<br>
$ sudo resolvconf -u<br>
<br>
And nothing were able to pull the nameservers from my router now. :/<br>
<br>
I had to manually edit it in order to get back access to internet.<br>
<br>
Why is that? What updates resolv.conf from my router's config?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thiago Farina<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">daV.e<br><br>"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." Bernard Shaw</div>
</div>