diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-09-20 03:40:42 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 03:40:42 +0700 |
commit | fab0fff43b2ec633de21355865d2cb91e8c18086 (patch) | |
tree | b54918734519d357c1fb6b67aa7472c046788083 | |
parent | 7e7c06b0ee7b62ac28bb155a1f1a9fd65ed547d7 (diff) | |
parent | 92886dd28d50b39c8fb92dd2f22f0ee776d0b7c8 (diff) | |
download | vyos-documentation-fab0fff43b2ec633de21355865d2cb91e8c18086.tar.gz vyos-documentation-fab0fff43b2ec633de21355865d2cb91e8c18086.zip |
Merge pull request #116 from kroy-the-rabbit/dns-migration-to-listen-add
Migration to 'listen-address', slight cleanup
-rw-r--r-- | docs/services/dns-forwarding.rst | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/docs/services/dns-forwarding.rst b/docs/services/dns-forwarding.rst index a8501c8f..067dacaf 100644 --- a/docs/services/dns-forwarding.rst +++ b/docs/services/dns-forwarding.rst @@ -32,22 +32,26 @@ Setting a forwarding DNS server for a specific domain: Example 1 ^^^^^^^^^ -Router with two interfaces eth0 (WAN link) and eth1 (LAN). A DNS server for the -local domain (example.com) is at 192.0.2.1, other DNS requests are forwarded -to Google's DNS servers. +Router with two interfaces eth0 (WAN link) and eth1 (LAN). Split DNS for example.com. + +* DNS request for a local domain (example.com) get forwarded to 192.0.2.1 +* Other DNS requests are forwarded to Google's DNS servers. +* The IP address for the LAN interface is 192.168.0.1. .. code-block:: sh set service dns forwarding domain example.com server 192.0.2.1 set service dns forwarding name-server 8.8.8.8 set service dns forwarding name-server 8.8.4.4 - set service dns forwarding listen-on 'eth1' + set service dns forwarding listen-address 192.168.0.1 Example 2 ^^^^^^^^^ Same as example 1 but with additional IPv6 addresses for Google's public DNS -servers: +servers. + +The IP addresses for the LAN interface are 192.168.0.1 and 2001:db8::1 .. code-block:: sh @@ -56,4 +60,5 @@ servers: set service dns forwarding name-server 8.8.4.4 set service dns forwarding name-server 2001:4860:4860::8888 set service dns forwarding name-server 2001:4860:4860::8844 - set service dns forwarding listen-on 'eth1' + set service dns forwarding listen-address 2001:db8::1 + set service dns forwarding listen-address 192.168.0.1 |