Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Long time lurker, first time poster - here it goes:

We've got an office server running Debian 6. It's used as a smb file server, ssh server, openvpn server, dns and dhcp server (via dnsmasq). The smb shares are mapped as win7 network drives within the network (192.168.0.0/24), eg.-

\\servername\share

While we've managed to set up a VPN connection (10.10.1.0/24) to be able to work from home, it only works while using IP addresses, so:

\\10.10.1.1\share

What we'd like to have is the server resolving it's own name 'servername' to two different IP addresses (192.168.0.1 and 10.10.1.1) based on what network the DNS request came from.

From what we found googling around it seems that something similar is possible using BIND and 'views'. Is it possible to do something similar via dnsmasq, or are we doing something completely wrong here?

share|improve this question
    
You're on the correct route... I don't know if it's possible with dnsmasq, but bind9 does support this feature using views... another approach is to setup different DNS server instance and push it to VPN clients. –  Kamil ┼árot Oct 30 '12 at 16:19
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.