libdns: dns/tcp client
commit623883083b5f9b5f07466fee99080c0c7f588551
authorVolker Lendecke <vl@samba.org>
Thu, 28 Dec 2017 21:35:46 +0000 (28 22:35 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 3 Jan 2018 23:37:21 +0000 (4 00:37 +0100)
tree84e418ec6e5d1c658889c2ec0875307689f3cfa2
parent507c9b6906ace462692eb499b1e217b5ea131c04
libdns: dns/tcp client

Same signature as the UDP client in the same file. This opens and closes
the socket per request. In the future, we might want to create a
persistent TCP connection for our internal DNS server's forwarder. That
will require proper handling of in-flight requests. Something for
another day.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/dns/dns.c
libcli/dns/libdns.h