tpvm dns

Configures the DNS server details for the TPVM instance. DNS configuration CLI already supports IPv4 address. It is enhanced to support IPv6 address.

Syntax

dns primary-server [ ipv4-addr | ipv6-addr ] secondary-server [ ipv4-addr | ipv6-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 | ipv6-addr ]
Adds a DNS server. Specifies the mandatory (primary) DNS server IP. DNS server IP can be in IPv4 or IPv6 format.
secondary-server [ ipv4-addr | ipv6-addr ]
Adds a secondary DNS server. This server will be used to resolve addresses in case the primary DNS server fails for any reason. Secondary DNS server IP can be in IPv4 or IPv6 format.
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

Examples

This example shows the configuration of DNS server.

SLX(config-tpvm-TPVM)# dns primary-server ?
Possible completions: 
    <A.B.C.D> IPv4 address of primary DNS 
    <A:B::C:D> IPv6 address of primary DNS       

This example shows the configuration of a IPv6 primary DNS server and configures its domain.

SLX(config-tpvm-TPVM)# dns primary-server 100:23::45:55 ?
Possible completions: 
    domain             Domain name 
    secondary-server   Secondary name server 
<cr> 
SLX(config-tpvm-TPVM)# dns primary-server 100:23::45:55
    secondary-server 110:13::15:51 domain ? 
 Possible completions: 
    <string>
SLX(config-tpvm-TPVM)# dns primary-server 100:23::45:55
    secondary-server 110:13::15:51 domain extreme

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

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