diff options
author | kroy <kroy@kroy.io> | 2019-09-19 11:50:03 -0500 |
---|---|---|
committer | kroy <kroy@kroy.io> | 2019-09-19 11:50:03 -0500 |
commit | 92886dd28d50b39c8fb92dd2f22f0ee776d0b7c8 (patch) | |
tree | 6bbb8d3153750285c31c040f7d929398954b36ef /docs | |
parent | bf3eeb0ab548c88f79103e5b2cb88639648368df (diff) | |
download | vyos-documentation-92886dd28d50b39c8fb92dd2f22f0ee776d0b7c8.tar.gz vyos-documentation-92886dd28d50b39c8fb92dd2f22f0ee776d0b7c8.zip |
Migration to 'listen-address', slight cleanup
Diffstat (limited to 'docs')
-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 |