Bug 974 - ArrayKK/ HSOL-4053/ APV/ Inquiry timeout when DNS server is down

Review Request #483 — Created Oct. 3, 2024 and submitted — Latest diff uploaded

tanya
APV10
rel_apv_10_4_2_104_webagent_dns, rel_apv_10_7, rel_apv_10_7_2
974
kdutta, kevin.poh, satyendra, timlai

Webagent is having trouble resolving the hosts (taking long time display the page or pages are not fully rendered) when 2 or 1 of the 3 dns servers are down and the working dns server is the last on the list. The solution is decreas the timeout. Do this by setting options timeout:1 in the /etc/resolv.conf when we add the dns servers. Servers are added when we execute ip nameserver <ip> command.
Note: make sure to add timeout at the bottom of the file or dns does not work.

Reproduced the problem when we dont have the timeout in the resolv.conf (the time between requests to diff dns servers is 3-5 sec) and then see the the time go to 1 sec with the fix.

checked the time differnce in tcpdump with and without the fix.

    Loading...