12.04: How to add local details to dnsmasq config

NoOp glgxg at sbcglobal.net
Tue Jun 5 17:43:12 UTC 2012


On 06/01/2012 12:17 PM, Paul Smith wrote:
...
> Using resolvconf won't help.  I need to get at the dnsmasq configuration
> because I have multiple DNS domains and I need to forward DNS queries to
> different DNS servers based on the hostname.
> 
> This is handled by the NetworkManager VPN tools, which add dnsmasq
> settings like:
> 
> 	server=/<domain>/<dns-ip>...
> 
> for every domain that is supported by that VPN.  This tells dnsmasq to
> forward lookups to different servers based on the domain, and that's
> exactly what I need.
> 
> But my VPN doesn't have any NetworkManager integration so I need to give
> a snippet of dnsmasq configuration to the system, that it will include
> with its auto-generated configuration.  Ideally I could add/remove it
> dynamically as the VPN is stopped/started but even if I can just get it
> added statically that'll be fine (that's how I used to have it).
> 
> Also, it's not always the case that the simple domain mapping
> NetworkManager uses is sufficient.  I have one VPN which provides only
> one high-level domain, but actually there are a number of domains which
> are served by those same internal servers (required due to acquisitions
> etc.)  I *might* be able to handle this by configuring the DNS info
> myself in NetworkManager; I'll try that tonight.
> 
> 

I do not have an answer to your problem. However, these may be of
interest to you as they concern issues with dnsmasq & NM in 12.04:

<https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1003842>
[dnsmasq sometimes fails to resolve private names in networks with
non-equivalent nameservers ]

Duplicates that have been merged into 1003842 (but contain useful
information)
<https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/997076>
[NM "dns=dnsmasq" breaks resolution of private domain names ]
<https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/993794>
[Precise can't connect to a network guarded by an authentication
webserver whose address can only be looked up with one of the
nameservers whose address is provided by DHCP ]
<https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/991347>
[After upgrade to 12.04 name resolution does not work ]





More information about the ubuntu-users mailing list