The dns server command configures the IP address of a DNS server.
The undo dns server command deletes the IP address of a DNS server.
By default, no IP addresses of DNS servers are configured.
dns server ip-address [ vpn-instance vpn-instance-name ]
undo dns server ip-address [ vpn-instance vpn-instance-name ]
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the IP address of a DNS server. |
The value is in dotted decimal notation. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
Usage Scenario
During dynamic domain name resolution, the DNS client can send a query packet to the DNS server, requesting for the IP address of the specified domain name. The DNS client sends a domain name resolution request to the DNS servers according to the order in which they were configured. If the domain name resolution request on the first DNS server times out, the device sends the request to the second DNS server.
If vpn-instance vpn-instance-name is specified, the system sends domain name resolution requests only to the DNS server bound to the specified VPN instance.
Precautions
A maximum of six DNS server IP (IPv4 and IPv6) addresses can be configured on the switch.