diff options
author | James Falcon <TheRealFalcon@users.noreply.github.com> | 2021-06-17 16:44:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 15:44:55 -0600 |
commit | abd2da5777195e7e432b0d53a3f7f29d071dd50e (patch) | |
tree | d08a094ccaca374b8a2ab6caa23890e417ac1133 /doc | |
parent | fbcb224bc12495ba200ab107246349d802c5d8e6 (diff) | |
download | vyos-cloud-init-abd2da5777195e7e432b0d53a3f7f29d071dd50e.tar.gz vyos-cloud-init-abd2da5777195e7e432b0d53a3f7f29d071dd50e.zip |
Fix DNS in NetworkState (SC-133) (#923)
v1 network config currently has no concept of interface-specific DNS,
which is required for certain renderers. To fix this, added an
optional 'interface' key on the v1 nameserver definition. If
specified, it makes the DNS settings specific to the interface.
Otherwise, it will be defined as global DNS as it always has.
Additionally, DNS for v2 wasn't being recognized correctly. For DNS
defined on a particular interface, these settings now also go into the
global DNS settings as they were intended.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rtd/topics/network-config-format-v1.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/rtd/topics/network-config-format-v1.rst b/doc/rtd/topics/network-config-format-v1.rst index 17732c2a..3202163b 100644 --- a/doc/rtd/topics/network-config-format-v1.rst +++ b/doc/rtd/topics/network-config-format-v1.rst @@ -335,6 +335,10 @@ the following keys: - ``address``: List of IPv4 or IPv6 address of nameservers. - ``search``: List of of hostnames to include in the resolv.conf search path. +- ``interface``: Optional. Ties the nameserver definition to the specified + interface. The value specified here must match the `name` of an interface + defined in this config. If unspecified, this nameserver will be considered + a global nameserver. **Nameserver Example**:: @@ -349,6 +353,7 @@ the following keys: address: 192.168.23.14/27 gateway: 192.168.23.1 - type: nameserver + interface: interface0 # Ties nameserver to interface0 only address: - 192.168.23.2 - 8.8.8.8 |