As ever, there is much information on DNS Servers on the Wikipedia
page. In particular, this note
Quote:
Dnsmasq can do basic split-horizon DNS based on the interface of the source request using the localise-queries configuration parameter.
|
seems relevant. I assume that this means that it can't do any more general split-horizon DNS than that described. Note also that I haven't tried it and hope not to. In part, this is because the link above refers to the DNSMasq
manual and that says:
Quote:
-y, --localise-queries
Return answers to DNS queries from /etc/hosts which depend on the interface over which the query was received. If a name in /etc/hosts has more than one address associated with it, and at least one of those addresses is on the same subnet as the interface to which the query was sent, then return only the address(es) on that subnet. This allows for a server to have multiple addresses in /etc/hosts corresponding to each of its interfaces, and hosts will get the correct address based on which network they are attached to. Currently this facility is limited to IPv4.
|
and that makes my brain hurt, particularly trying to think whether there are any circumstances in which making use of this facility might be a good idea (and, in particular, thinking about whether the lack of ipv6 support could have negative consequences, is not something that I want to do).
Note also that DNSMasq is a good, simple, product which really does one thing and does it well (and you can compare and contrast that description with any description of BIND, for example). There does come a point at which you are stretching the product beyond what it will reasonably do, and at that point you will find that you should consider either a different set of requirements, which might imply a different architecture, or using a product which is actually intended for a job of the complexity required, which will, of necessity, be much more
interesting to configure.
HTH.