selftest: Ensure we write 127. addresses into DNS
authorAndrew Bartlett <abartlet@samba.org>
Fri, 28 Aug 2015 03:07:49 +0000 (15:07 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:14 +0000 (04:40 +0200)
The --all-interfaces option is required both with and without the dns_host_file

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
selftest/target/Samba4.pm

index fd1b57565349b5382aa9bce759c8ba5a134effa9..4387c8a13f4d74c943dc22d8df92ec13f2ca959d 100755 (executable)
@@ -438,7 +438,7 @@ sub provision_raw_prepare($$$$$$$$$$$)
                $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces --use-file=$ctx->{dns_host_file}";
        } else {
                $ctx->{resolv_conf} = "$ctx->{etcdir}/resolv.conf";
-               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf}";
+               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces";
        }
 
        $ctx->{tlsdir} = "$ctx->{privatedir}/tls";