TWSD-115 [ANKK:HSOL-4015] / APV / WebAgent ttl value obtained from DNS server
Review Request #857 — Created May 9, 2025 and updated — Latest diff uploaded
| Information | |
|---|---|
| peteryeh | |
| APV10 | |
| rel_apv_10_7_2 | |
| TWSD-115 | |
| Reviewers | |
| jasonchang, kevin.poh, timsu, weikai | |
This combines all webagent DNS commit (rev 38812, 38948, 39104) from rel_10_7 branch to rel_10_7_2.
Root cause:
The libanl function getaddrinfo_a() doesnt' retrieve the complete TTL. Currently, we uses the TTL value from user-configured page then enable some potentially packet handing issues.Solution:
C-ares library (open source) has a function, ares_getaddrinfo() to obtain the TTL value.
Updates:
1.Move TTL assginment to the end of the operation.
2.Add Failover to c-ares for 2nd DNS server
3.Removed ares_queue_wait_empty(), replace it with while loop to wait for callbacks.
Webagent DNS WebUI / CLI show cmd
