Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 (, eg.-


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


What we'd like to have is the server resolving it's own name 'servername' to two different IP addresses ( and 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

Your Answer


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

Browse other questions tagged or ask your own question.