[Dnsmasq-discuss] Split-horizon

Rubén Justo rjusto at gmail.com
Sat Oct 17 19:42:04 BST 2020


Hi all,

I've updated to the latest source code a patch I did some time ago, to add
split-horizon functionality to the address options.

I use it to do some quick blocking just for some host/net, like:

address=/double-click.net/127.0.0.1;192.168.2.0/24    # block
double-click.net to hosts in the net 192.168.2.0/24 but not others, like
localhost 127.0.0.1

I use it also in development work or to do some man in the middle
inspection:

address=/dev-domain.com/192.168.2.1;-192.168.2.1    # response with
192.168.2.1 for dev-domain.com, except if the client is 192.168.2.1

It is also possible to do some split horizon to upstream servers:

server=/dns-domain.com/192.168.2.1;192.168.2.0/24    # forward queries for *
dns-domain.com originated from 192.168.2.0/24 clients, to the server in
192.168.2.1

I hope you find it useful. I use it to avoid having to set up multiple
servers and/or doing some custom /etc/hosts.

Regards.
Rubén.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201017/2b651dcb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-for-split-horizon-conditions-in-address-opti.patch
Type: text/x-patch
Size: 24082 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201017/2b651dcb/attachment-0001.bin>


More information about the Dnsmasq-discuss mailing list