Configuring a DNS Test Instance
Context
Before configuring a DNS test instance, configure a DNS server and ensure reachable routes between the DNS client and the DNS server.
A DNS test can detect the speed at which a DNS name is resolved into an IP address.
The NQA client also functions as the DHCP client. Perform the following steps on the NQA client.
The timeout and frequency commands constrain each other; therefore, properly set the values when running the two commands. Improper command settings may lead to test failure.
- On a network with poor quality and low transmission rate, increase the timeout value to ensure that the response to NQA detection packets can be received.
- The frequency value must be larger than the timeout value.
Procedure
- Run system-view
The system view is displayed.
- Run dns resolve
Dynamic DNS resolution is enabled.
By default, dynamic DNS resolution is disabled.
- Run nqa test-instance admin-name test-name
An NQA test instance is created, and the NQA view is displayed.
- Run test-type dns
The test type is set to DNS.
- Run destination-address url urlstring
The name of the destination host is configured.
- (Optional) Run the following commands as required to configure
parameters for the DNS test.
Run description string
A description is configured for the test instance.
Run frequency interval
The test period is set for the NQA test instance.
Run timeout time
The timeout period of a probe is set for the NQA test instance.
By default, the timeout period of a DNS probe is 3 seconds.
Run source-address { ipv4 ip-address | ipv6 ipv6-address }
The source IP address is configured.
ip-address and ipv6-address are similar to -a in the ping command and -a in the ping ipv6 command respectively.
Run records history number
The maximum number of historical records is set for the NQA test instance.
Run records result number
The maximum number of result records is set for the NQA test instance.
Run agetime hh:mm:ss
The aging time is set for the NQA test instance.
Run dns-server ipv4 ip-address
The DNS server address is configured.