From cceea89cdfbd4c4c42611fcf74350ab0b25d7c03 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Mon, 28 Aug 2023 09:13:33 +0000 Subject: T738: add CLI option for PowerDNS local-port set service dns forwarding allow-from '192.0.2.0/24' set service dns forwarding listen-address '192.0.2.11' set service dns forwarding port '5353' --- data/templates/dns-forwarding/recursor.conf.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data') diff --git a/data/templates/dns-forwarding/recursor.conf.tmpl b/data/templates/dns-forwarding/recursor.conf.tmpl index 294b228d2..a698670bc 100644 --- a/data/templates/dns-forwarding/recursor.conf.tmpl +++ b/data/templates/dns-forwarding/recursor.conf.tmpl @@ -25,6 +25,11 @@ export-etc-hosts={{ 'no' if ignore_hosts_file is defined else 'yes' }} # listen-address local-address={{ listen_address | join(',') }} +{% if port is defined and port is not none %} +# listen-port +local-port={{ port }} +{% endif %} + # dnssec dnssec={{ dnssec }} -- cgit v1.2.3