Chris<div><br></div><div>Did you come across Stephane Graber's website and article at <a href="http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/">http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/</a> (not sure if Stephane is on this list). If what you are after is just nameserver changes he addresses that. Now I'll admit to disabling the network manager install of dnsmasq and installing my own installation instead for 2 reasons </div>
<div><br></div><div><ul><li>like you I couldn't find a documented sensible way to customize dnsmasq supplied with Ubuntu - the design goal seems to be to limit you to the network manager interface</li><li>I like playing :)  </li>
</ul><div><br></div><br><div class="gmail_quote">On Tue, Oct 9, 2012 at 9:37 AM, Chris Green <span dir="ltr"><<a href="mailto:cl@isbd.net" target="_blank">cl@isbd.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Oct 08, 2012 at 06:49:38PM -0400, Jay Imerman wrote:<br>
> On Oct 8, 2012, at 14:04, Chris Green <<a href="mailto:cl@isbd.net">cl@isbd.net</a>> wrote:<br>
><br>
> > I have run dnsmasq with local configuration for quite a while now to<br>
> > provide local DNS services on my home LAN.<br>
> ><br>
> > I am now upgrading my machines to [xl]ubuntu 12.04 and in this version<br>
> > dnsmasq is run automatically by Network Manager.  A default installation<br>
> > just puts the following in resolv.conf:-<br>
> ><br>
> >    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<br>
> >    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN<br>
> >    nameserver 127.0.0.1<br>
> ><br>
> > How can I customize the dnsmasq configuration in a way that won't get<br>
> > broken by future upgrades?  The NM dnsmasq runs as follows:-<br>
> ><br>
> >    chris$ ps -ef | grep dnsmasq<br>
> >    nobody    1341  1090  0 17:40 ?        00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec<br>

> ><br>
> > Since the config file is specified as "--conf-file=/var/run/nm-dns-dnsmasq.conf"<br>
> > it's difficult to do anything that won't get lost at upgrade time.<br>
> ><br>
</div><div class="im">> Did you edit /etc/NetworkManager/NetworkManager.conf?  The line should<br>
> say dns=dnsmasq<br>
><br>
<br>
</div>*I* didn't edit that line, the upgrade to Ubuntu 12.04 (well xubuntu<br>
actually but that's of no import) did it.<br>
<br>
What I want to know is what is the 'right' way to add local<br>
configuration to the dnsmasq that Ubuntu 12.04 has added to my system.<br>
I didn't used to run dnsmasq on this system at all, I run it on a<br>
separate server system.  However, now that dnsmasq is being run for me<br>
on my desktop it seems to make sense to me to use it there rather than<br>
trying to maintain a separate configuration elsewhere.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Chris Green<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Niall Litchfield<br>Oracle DBA<br><a href="http://www.orawin.info">http://www.orawin.info</a><br>
</div>