tpvm config dns

Configures a DNS server in a Third-Party VM (TPVM).

Syntax

tpvm config dns add dns-server ipv4-addr [ipv4-addr ]domain-name domain-name
tpvm config dns remove

Command Default

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

Parameters

add
Adds a DNS server.
dns-server ipv4-addr [ipv4-addr ]
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.
remove
Removes a DNS server.

Modes

Privileged EXEC mode

Usage Guidelines

There is not a no form of this command.

Examples

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

device# tpvm config dns add dns-server 1.2.3.4 1.1.1.1 domain-name example.com

This example removes all DNS configuration from the TPVM.

device# tpvm config dns remove