summaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-03-27 01:59:06 -0500
committerGitHub <noreply@github.com>2023-03-27 01:59:06 -0500
commitcff9f7a29130a1f8335e000520fbd6e0fa90ad33 (patch)
tree6f32342aafcf3cf15d66e83cb4c778a391ae1e47 /docs/configuration
parent32024b93fd00c51c9a7fe0b02c77da91c702e2bf (diff)
downloadvyos-documentation-cff9f7a29130a1f8335e000520fbd6e0fa90ad33.tar.gz
vyos-documentation-cff9f7a29130a1f8335e000520fbd6e0fa90ad33.zip
dns: T5113: Support custom port for name-server forwarders
Support optional custom port for name-server forwarders.
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/service/dns.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/configuration/service/dns.rst b/docs/configuration/service/dns.rst
index 4315b6dc..5fe408f1 100644
--- a/docs/configuration/service/dns.rst
+++ b/docs/configuration/service/dns.rst
@@ -25,10 +25,11 @@ avoid being tracked by the provider of your upstream DNS server.
Interfaces whose DHCP client nameservers to forward requests to.
-.. cfgcmd:: set service dns forwarding name-server <address>
+.. cfgcmd:: set service dns forwarding name-server <address> port <port>
- Send all DNS queries to the IPv4/IPv6 DNS server specified under `<address>`.
- You can configure multiple nameservers here.
+ Send all DNS queries to the IPv4/IPv6 DNS server specified under `<address>`
+ on optional port specified under `<port>`. The port defaults to 53. You can
+ configure multiple nameservers here.
.. cfgcmd:: set service dns forwarding domain <domain-name> server <address>
@@ -167,8 +168,10 @@ In this scenario:
set service dns forwarding domain example.com server 2001:db8:cafe::1
set service dns forwarding name-server 192.0.2.1
set service dns forwarding name-server 192.0.2.2
+ set service dns forwarding name-server 192.0.2.3 port 853
set service dns forwarding name-server 2001:db8::1:ffff
set service dns forwarding name-server 2001:db8::2:ffff
+ set service dns forwarding name-server 2001:db8::3:ffff port 8053
set service dns forwarding listen-address 192.168.1.254
set service dns forwarding listen-address 2001:db8::ffff
set service dns forwarding allow-from 192.168.1.0/24