From 9492f0f00fd7c1815959f19988f83accce108ce4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 12 Dec 2008 15:15:21 +0100 Subject: 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/libcli/config.mk') diff --git a/source4/libcli/config.mk b/source4/libcli/config.mk index 8c31077d8c1..b60cda9adf1 100644 --- a/source4/libcli/config.mk +++ b/source4/libcli/config.mk @@ -136,6 +136,7 @@ PRIVATE_DEPENDENCIES = LIBCLI_NBT LIBSAMBA-HOSTCONFIG LIBNETIF LP_RESOLVE_OBJ_FILES = $(addprefix $(libclisrcdir)/resolve/, \ bcast.o nbtlist.o wins.o \ + dns_ex.o \ host.o resolve_lp.o) $(eval $(call proto_header_template,$(libclisrcdir)/resolve/lp_proto.h,$(LP_RESOLVE_OBJ_FILES:.o=.c))) -- cgit