Linux.com

Using as external DNS, point to different hosts depending on requestor IP

Posted by: Anonymous [ip: 209.175.45.150] on October 06, 2008 07:08 PM
Here's the scenario. I would like to take my laptop from site A to site B; at each site I would like to be able to query a DNS server offsite (or on a different part of the WAN) to contact "hostname" - however I would like the DNS server to vary the result for hostname depending on my laptop's originating IP address. If I am on subnet A I would like to be referred to the IP for hostnameA, and if I am on subnet B I would like to be referred to the IP for hostnameB. Is that possible with dnsmasq or any other DNS? What are the limitations, stipulations, and risks of doing this?

#

Return to Enhance your DNS and DHCP services with dnsmasq