Viscosity. OpenVPN client. For Mac.  
 
 

Specify a DNS server for a domain

Got a problem with Viscosity or need help? Ask here!

Specify a DNS server for a domain

Postby mand » Wed May 09, 2012 7:42 pm

Hello,
I a using Viscosity to connect to a remote network from our company lag, which has its own internal DNS servers. After connecting and receiving network configuration from the remote network, I am unable to resolve addresses in the local lag, even when I have entered the local DNS server in /etc/resolv.conf. It seems that only the first DNS server in the list is queried, which knows nothing about the local lan.
How can I specify a DNS server for a particular domain, or insure that all of the listed DNS servers are actually queried?

Thanks!
mand
 
Posts: 3
Joined: Wed May 09, 2012 7:15 pm

Re: Specify a DNS server for a domain

Postby James » Wed May 09, 2012 10:35 pm

Hi mand,

Make sure you're using Viscosity's DNS support, rather than attempting to edit the DNS settings directly. Assuming the OpenVPN server is pushing out the DNS servers to use, you can simply tick the "Apply DNS settings simultaneously" option under Preferences->Advanced to get the behaviour you require.

If the OpenVPN server isn't pushing out the DNS settings, you can set them yourself under the Networking tab when editing your connection in Viscosity.

Cheers,
James
User avatar
James
 
Posts: 947
Joined: Thu Sep 04, 2008 10:27 pm

Re: Specify a DNS server for a domain

Postby mand » Fri May 11, 2012 9:00 pm

Hi James,

Thanks for your reply. I still haven't figured it out, though. My server pushes DNS information as "dhcp-option:", which works fine with the "Enable DNS Support" box checked, but it stops working as soon as I check the "Apply DNS settings simultaneously"
box. Is there something else I need to do?

Thanks!
mand
 
Posts: 3
Joined: Wed May 09, 2012 7:15 pm

Re: Specify a DNS server for a domain

Postby James » Sat May 12, 2012 1:43 am

Hi mand,

Make sure that the OpenVPN server is also pushing out the domains you want to use the VPN DNS server for (using the dhcp-option DOMAIN command), or specify them locally in Viscosity.

When the "Apply DNS settings simultaneously" option is enabled, your local network's DNS server will be used for everything except for domains associated with the VPN connection (in which case the VPN DNS server will be used instead).

Cheers,
James
User avatar
James
 
Posts: 947
Joined: Thu Sep 04, 2008 10:27 pm

Re: Specify a DNS server for a domain

Postby mand » Mon May 14, 2012 5:52 pm

Aha! It actually does work.
It's just that lookups using the built-in Bind9 "host" utility fail - that kind of threw me for a loop.
Is this normal? Is there something analogous to an "/etc/nsswitch" that should be set for that to work?
(not critically important, but nevertheless I'm curious.)
mand
 
Posts: 3
Joined: Wed May 09, 2012 7:15 pm

Re: Specify a DNS server for a domain

Postby James » Wed May 16, 2012 12:17 am

Hi mand,

Yes, older tools such as host and nslookup use the resolv.conf file, which has been deprecated by Mac OS X. Instead the System Configuration store is used. You can check what DNS settings are in use using the command "scutil --dns".

Cheers,
James
User avatar
James
 
Posts: 947
Joined: Thu Sep 04, 2008 10:27 pm


Return to Viscosity Support (Mac Version)

Who is online

Users browsing this forum: Google [Bot] and 2 guests



 
 
 
 
Navigate

Home
Applications
Blog
About
Support
  Support

Support Home
Documentation
Knowledge Base
Forum
  Community

Blog
Forum
Twitter
Viscosity
Viscosity Server


 
 
SparkLabs Copyright © SparkLabs. All Rights Reserved.