[dnsdist] forwarding domains to special servers
Thomas Mieslinger
miesi at mail.com
Fri Jan 21 12:55:05 UTC 2022
Hi,
I'm completely new to dnsdist. I'd like to use it for DNS split horizon
setup.
Goal: send queries which end with 'internal.domain' to Pool "int".
According to the documentation there are two ways to do so:
-- setup default pool
newServer({address="2001:8d8:fe:53:72ec::1"})
-- internal nameserver
newServer({address="fd7c:b55:e086:41:500c::1", pool="int"})
Possibility 1:
addAction({'internal.domain'}, PoolAction("int"))
Possibility 2:
InternalDomains = newSuffixMatchNode();
InternalDomains:add(newDNSName("internal.domain"));
addAction(SuffixMatchNodeRule(InternalDomains), PoolAction("int"));
Are there rules of thumb which possibility to prefer?
Tia
Thomas
More information about the dnsdist
mailing list