Ticket #329 (closed enhancement: fixed)
Added utility function to parse DNS A response
|Reported by:||bennylp||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
Parsing DNS A response is a bit tricky, especially when CNAME record is present. Since this functionality is needed by both PJLIB-UTIL's DNS SRV and PJSIP's DNS resolution, move this functionality into a utility function pj_dns_parse_a_response() in pjlib-util/resolver.h.