5.6. Managing External DNS Servers

5.6.1. vinfra cluster settings dns show

Display DNS servers:

usage: vinfra cluster settings dns show

Example:

# vinfra cluster settings dns show
+------------------+-----------------------------------+
| Field            | Value                             |
+------------------+-----------------------------------+
| dhcp_nameservers | 10.10.0.10,10.10.0.11,10.37.130.2 |
| nameservers      | 10.10.0.11,10.10.0.10             |
+------------------+-----------------------------------+

This command lists the currently used DNS servers: both internal (obtained via DHCP) and external (static set by the user).

5.6.2. vinfra cluster settings dns set

Set DNS servers:

usage: vinfra cluster settings dns set --nameservers <nameservers>
--nameservers <nameservers>
A comma-separated list of DNS servers

Example:

# vinfra cluster settings dns set --nameservers 8.8.8.8
+------------------+---------------+
| Field            | Value         |
+------------------+---------------+
| dhcp_nameservers | - 10.10.0.10  |
|                  | - 10.10.0.11  |
|                  | - 10.37.130.2 |
| nameservers      | - 8.8.8.8     |
+------------------+---------------+

This command sets the external DNS server to 8.8.8.8.