The dns timeout command configures a DNS query response timeout period on a DNS client.
The undo dns timeout command restores the default DNS query response timeout period on a DNS client.
By default, the DNS query response timeout period on a DNS client is 5s.
Usage Scenario
After a DNS client sends a DNS query request to a DNS server, it initializes the retransmission count and starts the DNS query response timer. If the timer expires, the retransmission count increases by 1. When the retransmission count exceeds the specified value, the client stops sending packets to this DNS server and starts sending query request packets to a next DNS server. To adjust the DNS query response timeout period based on network conditions, run the dns timeout command. You can run the dns try command to configure the retransmission times for DNS query packets.