<div dir="ltr">Thanks! I went ahead and installed an independent copy and everything works fine. I only needed it for dhcp functionality.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 12:50 PM, Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.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, 2015-09-29 at 09:04 -0500, Brian Watson wrote:<br>
> Hi,<br>
>    I had this working on Ubuntu 10.04, but now I would like to get it<br>
> working on 14.04 with a better understanding of what's happening. On 10.04<br>
> I installed dnsmasq without understanding that there was probably one<br>
> already installed as part of NetworkManager. With 14.04 I would like to<br>
> just use the version that's used by NetworkManager, but I didn't understand<br>
> the following:<br>
<br>
</span>NM doesn't use a private on-disk copy of dnsmasq or anything, it uses<br>
the normal system copy that's already installed.  But it spawns a<br>
private *runtime* dnsmasq process to handle either (a) the local caching<br>
nameserver functionality, or (b) the internet connection sharing<br>
functionality.<br>
<br>
So it depends on what you want to use dnsmasq for; which one are you<br>
trying to do?  If it's internet connection sharing, then with the NM<br>
0.9.8 in Ubuntu 14.04 you cannot change the address range handed to<br>
clients on the interface.  That has been fixed in NM 0.9.10 and later<br>
but even though that version is more than a year old, it is only<br>
included in Ubuntu 15.04.<br>
<br>
Typically you never really need to touch the dnsmasq that NM spawns,<br>
because modifications are usually done through the NM configuration not<br>
dnsmasq.  An independently installed and configured dnsmasq usually does<br>
not conflict with NetworkManager's copy, unless:<br>
<br>
1) you have configured the independent copy to bind to the same<br>
interface/IP address that NetworkManager's copy is bound to, or you have<br>
allowed the independent copy to bind to all interfaces ("*") which<br>
obviously conflicts with the one NM spawns for interfaces it manages<br>
<br>
2) you have enabled NM's local caching nameserver functionality and you<br>
have configured the independent copy to do the same thing<br>
<br>
In Ubuntu, NM and dnsmasq communicate via D-Bus, not through<br>
configuration files.  For internet connection sharing, NM spawns and<br>
kills its own copy for that specific interface.  For local caching DNS,<br>
I think the dnsmasq may be started by<br>
<br>
Dan<br>
<span class=""><br>
> 1. The first thing I needed to do was to find the existing dnsmasq.conf so<br>
> that I could add my changes there and there is a version in<br>
> /etc/dbus-1/system.d/dnsmasq.conf<br>
>  2. dnsmasq.conf - it has XML type data in it related to busconfig with<br>
> some policies depending on the user.<br>
>  3. Can this file be modified so that I can add an interface with an<br>
> address range of IP addresses that I would like to use?<br>
>  4. If I install an independent version of dnsmasq does that interfere with<br>
> the NetworkManager one?<br>
>  5. Where is the NetworkManager one being started from? I looked in<br>
> /etc/init.d, but I didn't see anything for dnsmasq. I grepped the running<br>
> processes and it shows up as running.<br>
><br>
> Best Regards,<br>
>    BW<br>
</span>> _______________________________________________<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" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
<br>
</blockquote></div><br></div>