s4:libcli/resolve: add getaddrinfo()/dns_looup() resolving
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Dec 2008 14:15:21 +0000 (15:15 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Dec 2008 18:12:26 +0000 (19:12 +0100)
commit9492f0f00fd7c1815959f19988f83accce108ce4
tree013378d69f58c31222b2d70f72f925232d389c04
parent8df2140c18996e616e6fe1fcc8fd3e52ca5dcd74
s4:libcli/resolve: add getaddrinfo()/dns_looup() resolving

This "dns_ex" module provides flexible lookup methods
for dns lookups.

The getaddrinfo() part looks at /etc/hosts and dns.
As it handles CNAME replies badly we fallback
to use dns_lookup(name, "A").

The dns_lookup() makes DNS SRV lookups possible.

This module is not a real resolve module, it's just
a generic helper as the nbtlist.c code is.

The next step will be that the "host" module will
use the dns_ex.c code.

metze
source4/libcli/config.mk
source4/libcli/resolve/dns_ex.c [new file with mode: 0644]