I would like, in my network, the host
10.10.10.1 to resolve names via
188.8.131.52. They receive their DNS settings via the
dnsmasq DHCP service.
I can imagine two solutions:
- the hosts get a specific set of DNS servers depending on their IP
- both hosts resolve though the
dnsmasqserver (so they both receive its IP address as DNS server) and
dnsmasqredirects the requests based on the source IP of the requesting host.
Is this something which is configurable in dnsmasq?
The closest configuration I found is
server=/example.com/184.108.40.206 which would redirect to
220.127.116.11 requests to resolve
example.com. In my case however, it is the source which should trigger the condition and not the destination.