Kresd configuration: how to forward a specific internal domain to another DNS

I have two Omnias connected together via a VPN (site-to-site) and one has home as configured domain and the other has lan.

I would like to set up kresd in the home domain (router: 192.168.20.1) to forward the DNS queries to lan to the machine on the other side of the VPN link (192.168.10.1). What kind of custom configuration would be needed?

policy.add(policy.suffix(policy.STUB('192.168.10.1'), {todname('lan.')})) You could do the same for the reverse PTR zone, if you care for it (10.168.192.in-addr.arpa.).

1 Like

Just in case, here’s how to add kresd config: https://doc.turris.cz/doc/en/public/dns_knot_misc#adding_custom_configuration

Works, thanks a lot!

EDIT: For the reverse PTR zone, the same line but using 10.168.192.in-addr.arpa?

Yes, add another line with that suffix instead of lan.

Funnily enough, this does not work with the internal IP of the router itself:

Misconfiguration on my part.