The dns forward retry-number command sets the number of times for the device to retransmit query requests to the destination DNS server.
The undo dns forward retry-number command restores the default retransmission count.
By default, the retransmission count is 2.
Parameter |
Description |
Value |
|---|---|---|
number |
Specifies the number of times for the device to retransmit query requests to the destination DNS server. |
The value is an integer from 0 to 15. |
The mode for a device to select the destination DNS server can be auto and fixed. For how a device sends DNS request packets to the destination DNS server in each mode and the corresponding precautions, see dns-server-select-algorithm.
If the number of times for the device to retransmit DNS request packets to each destination DNS server is relatively large and the packet retransmission timeout period is relatively long, the time for the DNS client to wait for the response from the DNS server is too long. However, the request timeout period of the DNS client is shorter, so that the DNS client fails to properly receive response packets from the server. To enable the DNS server to rapidly respond DNS request packets, you can run the dns forward retry-number and dns forward retry-timeout commands to adjust the number of times for the device to retransmit DNS request packets to each DNS server and the packet retransmission timeout period for ensuring that the DNS client can properly receive response packets from the server.