dns

Configures a DNS server details for the TPVM instance.

Syntax

dns primary-server ipv4-addr [ secondary-server ipv4-addr ] [ domain domain-name ]
no dns [ primary-server ] [ secondary-server ] [ domain ]

Command Default

By default, a DNS server is not configured in TPVM.

Parameters

primary-server ipv4-addr [ secondary-server ipv4-addr ]
Adds a DNS server. Specifies a list of up to 2 IP addresses. One address (primary) is mandatory. The second address (secondary) is optional.
domain-name domain-name
Specifies the domain name for the DNS server. You can configure only one domain name.

Modes

TPVM Configuration mode

Usage Guidelines

Current implementation would remove all DNS server configurations at TPVM previously set, when no dns CLI is executed.

Examples

This example adds two DNS servers and updates the domain name.

SLX (config-tpvm-TPVM)# dns primary-server 1.2.3.4 secondary-server 1.1.1.1 domain-name example.com

This example removes the secondary DNS server configuration from the TPVM.

SLX (config-tpvm-TPVM)# no dns secondary-server