I have set up a VPN server using a Sinology box for accessing my office network from home.
I can access all the office IPs, but the host name resolution has some problems. DNS queries work : nslookup commands are successful. However, if I enter an office-local hostname in any software (including ping) it fails resolving the IP address. But if I add a dot to the hostname, it works.
So it seems that:
- DNS on local hostnames works perfectly. The internet router is the DNS server in that case.
- Windows apps use DNS queries for resolving names which contain a dot (which can be domain qualified hostnames, or just a local hostname with a dot appended)
- Windows apps use other mechanisms (NetBIOS? WINS?) for resolving plain hostnames without any dot.
- VPN is not working with these other mechanisms.
Is there any way to get name lookup working? For example by forcing windows to use DNS and no other mechanism on this connection?
I cannot use fixed IPs and hosts files as there are often changes in the connected computers.