summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-31 17:35:17 +0200
committerGitHub <noreply@github.com>2023-08-31 17:35:17 +0200
commit0ba723bcdbf608ba73bedbba74a8aa9be1d7df7b (patch)
treeb90bd46866ea2feb5675b61d351c754f3c6eaf0e
parentcfb75337c242301a2f4bbeeb9e8106c01fee235c (diff)
parentcceea89cdfbd4c4c42611fcf74350ab0b25d7c03 (diff)
downloadvyos-1x-0ba723bcdbf608ba73bedbba74a8aa9be1d7df7b.tar.gz
vyos-1x-0ba723bcdbf608ba73bedbba74a8aa9be1d7df7b.zip
Merge pull request #2181 from sever-sever/T738-eq
T738: add CLI option for PowerDNS local-port
-rw-r--r--data/templates/dns-forwarding/recursor.conf.tmpl5
-rw-r--r--interface-definitions/dns-forwarding.xml.in4
2 files changed, 9 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 }}
diff --git a/interface-definitions/dns-forwarding.xml.in b/interface-definitions/dns-forwarding.xml.in
index 5a824973a..0d639eaac 100644
--- a/interface-definitions/dns-forwarding.xml.in
+++ b/interface-definitions/dns-forwarding.xml.in
@@ -147,6 +147,10 @@
</properties>
</leafNode>
#include <include/listen-address.xml.i>
+ #include <include/port-number.xml.i>
+ <leafNode name="port">
+ <defaultValue>53</defaultValue>
+ </leafNode>
<leafNode name="negative-ttl">
<properties>
<help>Maximum amount of time negative entries are cached (default: 3600)</help>