[Dnsmasq-discuss] different name resolution per host

Yan Seiner yan at seiner.com
Wed Sep 2 11:20:37 BST 2015


I am trying to set up a single host on my network that would have 
different name resolution for a particular domain from the rest of the 
hosts.

As an example, the name www.example.com would normally be handed over 
to, let's say, google's servers for name resolution. but for one host on 
my network I want it to always resolve to a specific address, so

If request comes in from client a.my.net, return 1.2.3.4
If request comes in from any other client on a.my.net, return the answer 
that google's servers provide

The problem I am trying to solve is that the domain names I am dealing 
with resolve to multiple IPs, and this particular box needs to connect 
to one specific server, not round-robin.  And it's an appliance and I 
can't change any of the network parameters; everything has to be handled 
through the DNS server.

Does this make any sense at all?



More information about the Dnsmasq-discuss mailing list