Files
docs/doc/source/system_configuration/kubernetes/specifying-dns-servers-using-the-cli.rst
Stone ecae991cca System Configuration reorg
Organized SysConf Kubernetes and OpenStack content into subdirs and modified
index along lines of Planning layout.

Signed-off-by: Stone <ronald.stone@windriver.com>
Change-Id: Ia17c015b2083a39fcae4ac545fa10cb5445b4cb2
2021-01-29 09:41:28 -05:00

38 lines
1.2 KiB
ReStructuredText

.. ocy1552673225265
.. _specifying-dns-servers-using-the-cli:
=================================
Specify DNS Servers Using the CLI
=================================
You can use the CLI to add or update up to three DNS servers.
To view the existing DNS server configuration, use the following command:
.. code-block:: none
~(keystone_admin)$ system dns-show
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| uuid | cffcde8c-2124-4d19-881f-764ddafc8558 |
| nameservers | 8.8.8.8 |
| isystem_uuid | e1f955a1-2dee-492e-8c72-8b88a8b08558 |
| created_at | 2017-06-23T00:34:38.353023+00:00 |
| updated_at | 2017-06-24T20:52:13.307660+00:00 |
+--------------+--------------------------------------+
To change the list of DNS servers, use the following command syntax. The
nameservers option takes a comma-delimited list of IP addresses.
.. code-block:: none
~(keystone_admin)$ system dns-modify nameservers=<IP_address_1[,IP_address_2][,IP_address_3]>
For example:
.. code-block:: none
~(keystone_admin)$ system dns-modify nameservers=8.8.8.8,8.8.4.4