Page 1 of 1
Problem resolving hostnames
Posted: Thu Oct 07, 2010 12:04 pm
by rpr
I've setup a TUN VPN connection to be used for clients to access LAN ressources securely while outside the LAN. I can ping all my servers just fine, but the windows hostname resolving is not working
The target LAN is running on Domain1
Clients on Domain2 (at home atm, and company laptop at work, yay..)
Whenver I ping an IP address, i get a reply and everything is peachy!
When i ping the hostname of something on Domain1, it appears to be trying to resolve the hostname on Domain2.
I'll give it a go from a PC enrolled on Domain1 tomorrow morning to see if it just needs to be enrolled or whatever, anyone else got suggestions?
Re: Problem resolving hostnames
Posted: Thu Oct 07, 2010 12:11 pm
by krzee
you need a WINS server. you can then push it to windows clients like this
in server config
push "dhcp-option WINS a.b.c.d"
Re: Problem resolving hostnames
Posted: Fri Oct 08, 2010 3:44 am
by rpr
Great, this ALMOST fixed the problem!
I can resolve real hostnames just fine now, added the WINS entry in the DHCP server and they'll get it pushed eventually over the weekend, BUT cname aliases still dont work.
I've had a go at modifying the windows registry for adding multiple NetBIOS names, apparantly that used to work, but dont seem to have any effect now.
More ideas? Any help is greatly appreciated!

Re: Problem resolving hostnames
Posted: Fri Oct 08, 2010 11:30 pm
by krzee
WINS has cname entries too? (i dont use wins/samba/windows)
you might mean DNS now... if so, you can also push DNS servers that way
Re: Problem resolving hostnames
Posted: Sat Oct 09, 2010 8:32 am
by rpr
It's DNS cname entries alright, but doesn't seem like DNS lookups are traversing the tunnel, even though I'm pushing the DNS servers

Re: Problem resolving hostnames
Posted: Sun Oct 10, 2010 12:31 pm
by krzee
if you have done nothing in your routing to make it traverse the tunnel, it shouldnt...
if you are using a nameserver 8.8.8.8 try this:
push "route 8.8.8.8 255.255.255.255"
That will make the single IP 8.8.8.8 be reached by clients over the tunnel.
Re: Problem resolving hostnames
Posted: Sun Oct 10, 2010 12:45 pm
by rpr
I can ping the DNS server just fine already and push it into the network config of the clients, but it still appears to prefer the local DNS servers over the remote ones :/
Any hostname on the destination LAN wont resolve, but pinging their IP works just fine.
WINS sorta fixed it, pushing hostname lookups to the clients, but CNAME aliases configured in the DNS servers on the destination LAN still dont work.
Re: Problem resolving hostnames
Posted: Sun Oct 10, 2010 3:50 pm
by krzee
Re: Problem resolving hostnames
Posted: Mon Oct 11, 2010 6:48 am
by rpr
Problem fixed, I needed to push the domain name through the VPN aswell (d0h)

Thanks for the effort tho!