libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
authorAndrew Bartlett <abartlet@samba.org>
Mon, 25 Apr 2011 23:49:08 +0000 (09:49 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Apr 2011 07:16:34 +0000 (17:16 +1000)
commitc18954775e53a0f4dec4e36234dc45559055f96d
tree1a77efa4d9a08da2e90c7e147552cd11bca44b68
parent3a88d49d12fe6c74dffe3e8d82235c71511cc07c
libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv

By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer.  This will then give us a common DNS
emulation for 'make test'.

Andrew Bartlett
libcli/dns/dns.h [new file with mode: 0644]
libcli/dns/dns_hosts_file.c [moved from libcli/nbt/dns_hosts_file.c with 58% similarity]
libcli/nbt/wscript_build
selftest/target/Samba3.pm
source3/libads/dns.h