diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-26 09:49:08 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-26 17:16:34 +1000 |
commit | c18954775e53a0f4dec4e36234dc45559055f96d (patch) | |
tree | 1a77efa4d9a08da2e90c7e147552cd11bca44b68 /selftest | |
parent | 3a88d49d12fe6c74dffe3e8d82235c71511cc07c (diff) | |
download | samba-c18954775e53a0f4dec4e36234dc45559055f96d.tar.gz samba-c18954775e53a0f4dec4e36234dc45559055f96d.tar.bz2 samba-c18954775e53a0f4dec4e36234dc45559055f96d.zip |
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
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/target/Samba3.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 3c0dd0918a..a829b09797 100644 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -515,6 +515,8 @@ sub provision($$$$$$) my $bindir_abs = abs_path($self->{bindir}); my $vfs_modulesdir_abs = ($ENV{VFSLIBDIR} or $bindir_abs); + my $dns_host_file = "$ENV{SELFTEST_PREFIX}/dns_host_file"; + my @dirs = (); my $shrdir="$prefix_abs/share"; @@ -714,6 +716,8 @@ sub provision($$$$$$) ncalrpc dir = $lockdir/ncalrpc rpc_server:epmapper = embedded + resolv:host file = $dns_host_file + # Begin extra options $extra_options # End extra options |