Set /etc/resolv.conf to the local dnsmasq (nameserver 127.0.0.1)<div>Set openvpn to store its information to /etc/resolv.conf.vpn</div><div>Tell dnsmasq to read the server list from /etc/resolv.conf.vpn<br><br><div class="gmail_quote">
On Sat, Apr 18, 2009 at 10:35 PM, Eric S. Johansson <span dir="ltr">&lt;<a href="mailto:esj@harvee.org">esj@harvee.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 this has happened to me with three separate sites so I really need to fix<br>
something.  When I connect to a remote site with open VPN, it rewrites<br>
resolv.conf so that it includes a remote DNS server first and then the local<br>
name server.  When I query for a remote name, everything works fine.  But when I<br>
query for a local name, I get NXDOMAIN.  as I see it, my solutions are fairly<br>
limited.<br>
<br>
Is there anything I can do to change the NXDOMAIN response in the remote dnsmasq<br>
instances?<br>
<br>
would it make sense to run a local dnsmasq and filter out the erroneous NXDOMAIN<br>
references from the  name servers pointed to by resolv.conf?<br>
<br>
I think this is an important problem because it&#39;s going to occur any time you<br>
use open VPN and have both local and remote DNS servers.<br>
<br>
Thanks for any help<br>
<br>
<br>
---eric<br>
<br>
 PS fwiw, I&#39;m already halfway to running dnsmasq locally because of vmware&#39;s<br>
whacked DNS and DHCP setup.<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>
</blockquote></div><br></div>