<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How to not use VPN's DNS on OS X?</title>
	<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X/</link>
	<description>Comments on Ask MetaFilter post How to not use VPN's DNS on OS X?</description>
	<pubDate>Tue, 11 Sep 2007 07:23:29 -0800</pubDate>
	<lastBuildDate>Tue, 11 Sep 2007 07:23:29 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How to not use VPN&apos;s DNS on OS X?</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X</link>	
		<description>When I connect to my VPN in OS X (using the built-in client), all DNS requests are sent through the VPN. How can I prevent this? &lt;br /&gt;&lt;br /&gt; I have the checkbox &quot;send all traffic through VPN connection&quot; unchecked, so I can use the internet and the VPN at the same time. However, once I&apos;m connected to the VPN, DNS goes through the VPN, which makes everything horrifically slow. I&apos;d like to have my DNS servers remain unchanged. All the sites I access on the VPN are in my /etc/hosts, so I don&apos;t need the VPN&apos;s (very slow) DNS servers. &lt;br&gt;
&lt;br&gt;
Is there something I can do at the command line maybe to change the DNS servers back after connecting?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.71281</guid>
		<pubDate>Tue, 11 Sep 2007 06:52:07 -0800</pubDate>
		<dc:creator>dmd</dc:creator>
		
			<category>dns</category>
		
			<category>vpn</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062369</link>	
		<description>Edit /etc/resolv.conf</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062369</guid>
		<pubDate>Tue, 11 Sep 2007 07:23:29 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062371</link>	
		<description>This is for Win2K, but it might work...&lt;br&gt;
&lt;br&gt;
 - In the VPN properties, click into the networking tab. &lt;br&gt;
 - Click Internet Protocol and click the Properties button.&lt;br&gt;
 - Click the Advanced Button&lt;br&gt;
 - Untick &quot;Use default Gateway on remote network&quot;&lt;br&gt;
&lt;br&gt;
If that doesn&apos;t work then in this dialog (DNS tab), you can also set up the DNS servers for the particular connection.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062371</guid>
		<pubDate>Tue, 11 Sep 2007 07:24:19 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062373</link>	
		<description>OSX. (My bad - Sorry.)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062373</guid>
		<pubDate>Tue, 11 Sep 2007 07:24:53 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: pmbuko</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062377</link>	
		<description>What version of OS X are you using? In 10.4 and later, you can manually specify DNS servers. Open System Preferences and click the Network item. Select your VPN connection from the &quot;Show&quot; menu, then enter your preferred DNS servers in the &quot;DNS Servers&quot; section. These should override anything that the VPN specifies.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062377</guid>
		<pubDate>Tue, 11 Sep 2007 07:26:03 -0800</pubDate>
		<dc:creator>pmbuko</dc:creator>
	</item><item>
		<title>By: Kadin2048</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062379</link>	
		<description>Interesting question. Usually, sending DNS through the VPN is regarded as a feature, not a bug ... but in your situation I can see how it would be undesirable. &lt;br&gt;
&lt;br&gt;
How do you have your DNS server set up in the Networking preference pane? Although I&apos;ve never really checked to see how OS X decides what traffic to put through the VPN when you have the &quot;send all traffic&quot; option off, my guess would be that it does it by subnet. (If not by domain, which would be the logical choice, except that it&apos;s obviously not doing that since that wouldn&apos;t include DNS queries.)&lt;br&gt;
&lt;br&gt;
Perhaps if you &lt;a href=&quot;http://www.opendns.com/start/mac_os_x.php&quot;&gt;explicitly define&lt;/a&gt; a DNS server in your Network preferences, and make sure that it&apos;s one that&apos;s outside the subnet used by the VPN, OS X will use it? That would be my first try, anyway.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062379</guid>
		<pubDate>Tue, 11 Sep 2007 07:26:32 -0800</pubDate>
		<dc:creator>Kadin2048</dc:creator>
	</item><item>
		<title>By: pmbuko</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062387</link>	
		<description>Also, I haven&apos;t tried it, but the solution discussed &lt;a href=&quot;http://blog.liip.ch/archive/2006/01/07/changing-default-routes-on-os-x-on-vpn.html&quot;&gt;here&lt;/a&gt; looks promising.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062387</guid>
		<pubDate>Tue, 11 Sep 2007 07:30:28 -0800</pubDate>
		<dc:creator>pmbuko</dc:creator>
	</item><item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062395</link>	
		<description>(OS X doesn&apos;t use /etc/resolv.conf, at least recent versions.  Neither is this a packet routing problem.)&lt;br&gt;
&lt;br&gt;
Here&apos;s one way to do it:  Install &quot;dnsmasq&quot; locally (google &quot;Fink&quot;) and set your nameserver to use the local address (127.0.0.1).  Then, set dnsmasq rules to divert certain kinds of queries to certain other nameservers.&lt;br&gt;
&lt;br&gt;
http://www.thekelleys.org.uk/dnsmasq/doc.html&lt;br&gt;
http://finkproject.org/</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062395</guid>
		<pubDate>Tue, 11 Sep 2007 07:36:13 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item><item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062397</link>	
		<description>By &quot;set your nameserver to use the local address&quot; I meant &quot;set your computer network settings to point to the local address only&quot;.  Do that in SysPref -&amp;gt; Network.&lt;br&gt;
&lt;br&gt;
Sorry.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062397</guid>
		<pubDate>Tue, 11 Sep 2007 07:37:26 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1062410</link>	
		<description>&lt;i&gt;&quot;OS X doesn&apos;t use /etc/resolv.conf, at least recent versions.&quot;&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
This is correct and I am in error.  I just so happen to have BIND installed -- nearly everyone else won&apos;t.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1062410</guid>
		<pubDate>Tue, 11 Sep 2007 07:51:21 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: delfuego</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1063261</link>	
		<description>I&apos;m not sure you want to do what you say you want.  Understand that if you achieve what you seek -- keeping your DNS servers local to your machine -- then if your workplace has a behind-the-firewall DNS server that serves up names of internal hosts, you won&apos;t be able to use that at all.  This is pretty common -- and it&apos;ll mean that you won&apos;t be able to resolve the names of many hosts you probably use regularly when you&apos;re connected to your VPN.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1063261</guid>
		<pubDate>Tue, 11 Sep 2007 20:01:03 -0800</pubDate>
		<dc:creator>delfuego</dc:creator>
	</item><item>
		<title>By: dmd</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1063509</link>	
		<description>delfuego, reread the question carefully.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1063509</guid>
		<pubDate>Wed, 12 Sep 2007 05:29:08 -0800</pubDate>
		<dc:creator>dmd</dc:creator>
	</item><item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/71281/How-to-not-use-VPNs-DNS-on-OS-X#1063596</link>	
		<description>I shouldn&apos;t give answers when I&apos;m sleepy, sorry.  Let me rephrase:&lt;br&gt;
&lt;br&gt;
&quot;dnsmasq&quot; is a fake nameserver that you can install locally.  In its configuration, you tell it pairs of zones+nameservers, and it proxies your requests for a record such zone to such nameserver.  E.g., you might say&lt;br&gt;
&lt;br&gt;
server=/arpa/[address of normal nameserver]&lt;br&gt;
server=/business.example.com/[vpn nameserver]&lt;br&gt;
server=/oc.te.ts.in-addr.arpa/[vpn nameserver]&lt;br&gt;
server=[address of normal nameserver]  # the default&lt;br&gt;
&lt;br&gt;
So, looking up foo.business.example.com would be forwarded to [vpn nameserver], and blah.com would be forwarded to [address of normal nameserver].</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.71281-1063596</guid>
		<pubDate>Wed, 12 Sep 2007 07:29:24 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item>
	</channel>
</rss>
