summaryrefslogtreecommitdiffstats
path: root/selftest/target
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-04-28 08:29:40 +0200
committerStefan Metzmacher <metze@samba.org>2014-08-26 09:13:06 +0200
commit25ec8e8656f66fe51a0d48718cdcfd8b209f6ca0 (patch)
treeb1e88a2cdcc7031f48e0b2e251c2cf1b629eab5c /selftest/target
parent6e853708def98545eeb6913b8a2dd59d439323e6 (diff)
downloadsamba-25ec8e8656f66fe51a0d48718cdcfd8b209f6ca0.tar.gz
samba-25ec8e8656f66fe51a0d48718cdcfd8b209f6ca0.tar.xz
samba-25ec8e8656f66fe51a0d48718cdcfd8b209f6ca0.zip
s4:samba_dnsupdate: cache the already registered records
This way we can delete records which are not used anymore. E.g. if the ip address changed. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/target')
-rwxr-xr-xselftest/target/Samba3.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 8c15d3750f..554410580f 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -1259,7 +1259,7 @@ domadmins:X:$gid_domadmins:
print DNS_UPDATE_LIST "AAAA $server. $server_ipv6\n";
close(DNS_UPDATE_LIST);
- if (system("$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate --all-interfaces --use-file=$dns_host_file -s $conffile --update-list=$prefix/dns_update_list --no-substiutions --no-credentials") != 0) {
+ if (system("$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate --all-interfaces --use-file=$dns_host_file -s $conffile --update-list=$prefix/dns_update_list --update-cache=$prefix/dns_update_cache --no-substiutions --no-credentials") != 0) {
die "Unable to update hostname into $dns_host_file";
}