My C++ application has to lookup a DNS SRV record pointing to an IPv6 address. From what I researched so far, the res_search() family of functions is the way to go.
Does anyone have an example how to prepare such a query and how to extract the IPv6 result ?