[dnsdist] forwarding domains to special servers

Remi Gacogne remi.gacogne at powerdns.com
Fri Jan 21 13:00:44 UTC 2022


Hi Thomas,

On 21/01/2022 13:55, Thomas Mieslinger via dnsdist wrote:
> 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?

Both possibility do exactly the same thing under the hood.
Personally I would only use the second one if you want to be able to 
alter the list at runtime, via the console.

Best regards,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20220121/f0bb296e/attachment.sig>


More information about the dnsdist mailing list