dns

Configures the DNS server details for the TPVM instance. DNS configuration is supported for IPv4 and IPv6 addresses.

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 a IPv4 primary DNS server.

SLX (config-tpvm-TPVM)# DNS primary-server 10.9.9.53
SLX (config-tpvm-TPVM)#
        

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  
 SLX(config-tpvm-TPVM)# dns primary-server 100:23::45:55 domain example.lan
 SLX(config-tpvm-TPVM)# dns
	 primary-server 100:23::45:55
	 domain example.lan

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

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