(Optional) Associating a DNS Server with NQA
Context
After a DNS server is associated with NQA, the device sends a query packet only to the DNS server in Up state during dynamic domain name resolution. This improves the domain name resolution efficiency.
Procedure
- Configure and start NQA test instances. A DNS server can be associated with NQA test instances of the DNS and ICMP types. According to the test mechanism, NQA test instances of the DNS type are used to test whether the DNS server function is normal; those of the ICMP type are used to test whether routes to the DNS server are reachable. You can select one NQA test instance type based on the site requirements.
- Configuring and starting an NQA test instance of the DNS type
Run system-view
The system view is displayed.
Run nqa test-instance admin-name test-name
An NQA test instance is created and the test instance view is displayed.
By default, no NQA test instance is configured.
Run test-type dns
The test instance type is set to DNS.
By default, no test type is configured for an NQA test instance.
Run dns-server ipv4 ip-address
The DNS server address is configured.
By default, no DNS server address is configured.
Ensure that the configured DNS server address is the same as that specified in the dns server ip-address track nqa admin-name test-name command. If the addresses are different, the NQA check result will not match the associated DNS server.
Run destination-address url urlstring
The destination host name is configured.
By default, no test destination host name is configured.
Run frequency interval
The automatic test interval is set for the NQA test instance.
By default, no automatic test interval is set. The system performs the test only once.
Run start
The NQA test instance is started.
An NQA test instance can be started immediately, at a specified time, or after a specified delay.
Run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance immediately.
Run the start at [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance at a specified time.
Run the start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance after a specified delay.
Run quit
Exit from the NQA test instance view.
- Configuring and starting an NQA test instance of the ICMP type
Run system-view
The system view is displayed.
Run nqa test-instance admin-name test-name
An NQA test instance is created and the test instance view is displayed.
By default, no NQA test instance is configured.
Run test-type icmp
The test type is set to ICMP.
By default, no test type is configured for an NQA test instance.
Run destination-address ipv4 ipv4-address
The destination address is configured.
By default, no test destination address is configured.
Run frequency interval
The automatic test interval is set for the NQA test instance.
By default, no automatic test interval is set. The system performs the test only once.
Run start
The NQA test instance is started.
An NQA test instance can be started immediately, at a specified time, or after a specified delay.
Run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance immediately.
Run the start at [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance at a specified time.
Run the start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command to start the test instance after a specified delay.
Run quit
Exit from the NQA test instance view.
- To persistently detect the DNS server status, you need to perform periodical test for NQA test instances. Therefore, run the frequency interval command to set the automatic test interval for NQA test instances.
- This section only mentions basic configuration parameters of the DNS and ICMP NQA test instances. For details on how to configure other parameters, see Configuring DNS Test and Configuring ICMP Test in the Huawei AR Series V300R019 Configuration Guide-Network Management and Monitoring-Configuring the NQA.
- Run dns resolve
The dynamic domain name resolution function is enabled.
By default, dynamic domain name resolution is disabled.
- Run dns server ip-address track nqa admin-name test-name
An IP address for the DNS server is configured and the DNS server is associated with NQA. During dynamic domain name resolution, the device sends a query request only to the DNS server in Up state.
By default, no DNS server IP address is configured.
You can run the display dns server command to check the DNS server status. When the DNS server is not associated with NQA, the server is in Up state. After the DNS server is associated with NQA, the server status depends on the NQA check result. When the NQA test instance type is not DNS and ICMP, the association between the DNS server and NQA does not take effect and the DNS server is in Up state.