libcli/dns: Add dns_lookup
authorVolker Lendecke <vl@samba.org>
Tue, 2 Jan 2018 12:56:56 +0000 (13:56 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 15 Jan 2019 06:53:21 +0000 (07:53 +0100)
commit5f393deb3095ac0c0b0a6d57e7182c104b061404
tree4d27f12c658229bf7a9829ee6bc778b5c928ef7f
parente9e4aeafc0cf7030dbd885710d6e8a179110f9ce
libcli/dns: Add dns_lookup

Wrapper function to parse resolv.conf and talk to multiple nameservers. This is
the code where we might want to add a "working nameserver" cache. glibc always
looks at the first configured nameserver. If that's dead, glibc runs into a
timeout and only then asks the second one that might succeed. When more than
one dns query is to be performed, these timeouts add up.

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