v1.7.3 unable to use pushed DNS servers

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

mbravo

Posts: 1
Joined: Wed Jun 28, 2017 10:05 pm

Post by mbravo » Wed Jun 28, 2017 10:16 pm
Hi,

I'm trying to push custom DNS settings from the server to client (ideally to achieve Split DNS lookups but I'd be happy with Full DNS initially).

Server is on an ubuntu machine, 2.3.10-1ubuntu2.1

client is Viscosity 1.7.3 on a Mac, OS X 10.12.5
configuration is set to Full DNS (as target DNS servers allow recursion)

upon connection, I can see the following in the server log:
Wed Jun 28 12:02:43 2017 mbravo/37.142.122.142:26424 SENT CONTROL [mbravo]: 'PUSH_REPLY,route 10.0.1.0 255.255.255.0,[more routes censored],dhcp-option DNS1 10.85.5.248,dhcp-option DNS2 10.85.6.138,dhcp-option DNS3 10.85.7.189,route-gateway 10.9.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.9.0.2 255.255.255.0' (status=1)

and indeed routing works, but the DNS servers listed are not present in the output of 'scutil --dns', and the only change is in /etc/resolv.conf where it says at the end:

search utun1.viscosity

And the DNS doesn't work at all at the client machine (even though 'scutil --dns' shows Google DNS servers)

If I execute direct DNS lookups with dig against any of the three listed servers, it returns valid results, and all connectivity is good.

So it seems that Viscosity is somehow not propagating the actual DNS addresses it receives to OS X.

Any ideas are very much appreciated. Ideally, I would like to only use the received DNS ips to look up only names on .consul domain.

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Jun 29, 2017 4:53 am
Hi mbravo,

The pushed commands don't appear to be valid - they shouldn't have numbers in the option type. So instead of the following in the server's configuration:
Code: Select all
push "dhcp-option DNS1 10.85.5.248"
push "dhcp-option DNS2 10.85.6.138"
push "dhcp-option DNS3 10.85.7.189"
It should be:
Code: Select all
push "dhcp-option DNS 10.85.5.248"
push "dhcp-option DNS 10.85.6.138"
push "dhcp-option DNS 10.85.7.189"
For more information on pushing DNS settings, including domains for searching and Split DNS please see:
http://www.sparklabs.com/support/kb/art ... the-server

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1