libcli: Add ads_dns_query_srv_send()/recv()
authorVolker Lendecke <vl@samba.org>
Sun, 29 Nov 2020 17:25:32 +0000 (18:25 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 11 Dec 2020 18:29:32 +0000 (18:29 +0000)
commit31d85404fc2b2e7d4c7d00ac0f8b78e30e3bc089
tree4ba81533b235b74a43b7663ae3b03314c8ce82e4
parent60b96580d2415ea8048ea6b216cf764727d23879
libcli: Add ads_dns_query_srv_send()/recv()

This issues the "query" for SRV records site-aware and siteless. If
there are SRV records returned without IP addresses, it will issue A
and AAAA requests, waiting up to async_dns_timeout seconds. If that
timeout is reached, ads_dns_query_srv_recv() returns whatever is
around.

Superdebug added by Jeremy <jra@samba.org> :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/addns/dnsquery_srv.c [new file with mode: 0644]
lib/addns/dnsquery_srv.h [new file with mode: 0644]
lib/addns/wscript_build