Configure DNS Detection Function
Configuration Condition
None
Configure Domain Name List
Configure the domain name list, and you can add some common domain names to the domain name list for saving. When it is necessary to use, directly specify the name of the domain name list.
Table 4-5 Configure the domain name list
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Create one domain name list and enter the domain name list configuration mode
|
dns domain-list list-name
|
Mandatory
By default, do not configure the domain name list.
|
Configure the domain name
|
domain domain-name
|
Mandatory
By default, do not configure the domain name in the domain name list.
|
Detect Domain Name Resolution
Detect the domain name resolution, and you can detect whether the DNS server can correctly resolve the specified domain name.
Table 4-6 Detect the domain name resolution
Step
|
Command
|
Description
|
Detect the domain name resolution
|
dns query [ vrf vrf-name ] ip-address [ name domain-name | name-list list-name ] [ timeout time ]
|
Mandatory
By default, do not detect the domain name resolution.
|