Configures the DNS server details for the TPVM instance. DNS configuration is supported for IPv4 and IPv6 addresses.
By default, a DNS server is not configured in TPVM.
TPVM Configuration mode
When configuring DNS servers, both the primary and secondary servers should have the same IP address format.
When changing the DNS server IP of the primary server from one IP format to another, the secondary DNS server configuration will not be retained and must be reconfigured.
The secondary DNS server IP cannot be changed from one IP format to another without making the same change to the primary DNS server. You cannot modify only the secondary DNS server.
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