[Dnsmasq-discuss] interface-specific DNS entries
Jason A. Donenfeld
Jason at zx2c4.com
Thu Jun 22 14:02:24 BST 2017
Hey folks,
I use the interface-name directive like this:
interface-name=martino,lan
interface-name=martino,guest
interface-name=martino,remote
This has the consequence of seeing all the IPs at once for this domain:
zx2c4 at thinkpad ~ $ host martino
martino has address 10.10.10.1
martino has address 10.11.0.1
martino has address 10.10.11.1
Instead of this, I'd like for dnsmasq to return lan's IP when the DNS
request comes via lan, guest's IP when the DNS request comes via
guest, and remote's IP when the DNS request comes via remote.
Is it possible to bind certain DNS responses to a particular
interface? More generally, it'd be nice to be able to use the tag:
directive with DNS entries, such as:
interface-name=tag:lan,martino,lan
interface-name=tag:guest,martino,guest
interface-name=tag:remote,martino,remote
Thanks,
Jason
More information about the Dnsmasq-discuss
mailing list