Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So I have a dd-wrt router connected to my cable modem. Behind that router on my lan are computers with hostnames le1700, wind and t60p. On each machine, I am simply able to do a nslookup and it returns the correct address. All is good.

Then, I connect to my university VPN (cisco client) with, say, le1700. Now bam, I can no longer access t60p and wind with their hostnames. I can still use their IP addresses, but I can't use their hostnames.

Now, this is understandable. When I am not on a VPN, nslookup (Windows) tells me the server it is using for name resolution is my router itself (which is thanks to dnsmasq, I am guessing). However, when on the VPN, the server used is that of my university.

So my question is, when connected to university VPN, how do I still access my LAN computers through hostname? I am kind of hoping that there's a way I can say "MyHomeNetwork" will always refer to LAN, and therefore even if connected to VPN "t60p.MyHomeNetwork" still refers correctly.

Any suggestions?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Easiest way to do that is to put your DNS records manually to hosts file. hosts is local database for static (manually set) DNS records.

In Mac OS X / Linux see /etc/hosts, in Windows C:\Windows\system32\drivers\etc\hosts.

As you already guessed, just setting up DNS records is not enough to have connectivity to your computers, as all traffic is going through VPN tunnel to university network, and your router is blocking incoming connections.

You can fix this by adding static route for your local computers. In Linux:

route add -host 192.168.0.2 dev eth0

will add static route to 192.168.0.2 via eth0, instead of VPN tun/tap device.

share|improve this answer

The Cico VPN system uses something called Split DNS to facilitate this. Unfortunately this is configured at the VPN Server end and not at the client.

Split DNS should send a list of university domains to the client and these domains are then the only ones resolved using your campus DNS servers.

You should speak to the computer support people at your university about whether Split DNS is set up on thier VPN system or not and find out why it hasn't been.

share|improve this answer
    
Wow, I didn't know that. However, Split DNS is not going to fix problem with accessibility. Also, probably it's not enabled, because then VPN is not secure way to connect over untrusted networks (when connecting to partners network or computer with weird hostname). –  Olli Feb 26 '11 at 17:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.