4.4. Managing External DNS Servers

4.4.1. Listing DNS Servers

4.4.1.1. Syntax

usage: vinfra cluster settings dns show [-h] [-f {json,table,value,yaml}]
                                        [-c COLUMN]

Display DNS servers.
...

4.4.1.2. Sample Output

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

# 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             |
+------------------+-----------------------------------+

4.4.2. Setting External DNS Servers

4.4.2.1. Syntax

usage: vinfra cluster settings dns set [-h] [-f {json,table,value,yaml}]
                                       [-c COLUMN] --nameservers <nameservers>

Set DNS servers.

optional arguments:
  -h, --help            show this help message and exit
  --nameservers <nameservers>
                        A comma-separated list of DNS servers
...

4.4.2.2. Sample Output

This command sets the external DNS server to 8.8.8.8.

# 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     |
+------------------+---------------+