![Rafael Jardim](/assets/img/avatar_default.png)
There are minor changes here, that update the content of some files here is the link to the commit on downstream http://bitbucket.wrs.com/projects/DOCS/repos/ starlingx_upstreaming/commits/3b193cc3aa566b2040c7226a9ed32d08bd91b82f Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com> Change-Id: I461fce0c81f4605c200572ff71ae52cc889a856b
38 lines
1.2 KiB
ReStructuredText
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
|