summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-28 09:13:33 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-29 07:05:30 +0000
commitcceea89cdfbd4c4c42611fcf74350ab0b25d7c03 (patch)
tree204be2d3b4b152cd279f7d958327ae8f407ecc9e /data
parenta5c5998a84917cc45f9fb3234607f53b27a109fc (diff)
downloadvyos-1x-cceea89cdfbd4c4c42611fcf74350ab0b25d7c03.tar.gz
vyos-1x-cceea89cdfbd4c4c42611fcf74350ab0b25d7c03.zip
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'
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.tmpl5
1 files changed, 5 insertions, 0 deletions
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 }}