selftest: Use the dns domain in the hosts file.
authorAndreas Schneider <asn@samba.org>
Mon, 1 Sep 2014 12:45:26 +0000 (14:45 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 1 Sep 2014 13:47:33 +0000 (15:47 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/target/Samba4.pm

index 28c287ed19cb9b6e7949b1cf3798aa888614a60d..342de582a768385f6bedfc9aea36926764a8739e 100755 (executable)
@@ -703,8 +703,8 @@ $ctx->{unix_name}:x:$ctx->{unix_gid}:
 
        my $hostname = lc($ctx->{hostname});
        open(HOSTS, ">>$ctx->{nsswrap_hosts}");
-       print HOSTS "$ctx->{ipv4} ${hostname}.samba.example.com ${hostname}\n";
-       print HOSTS "$ctx->{ipv6} ${hostname}.samba.example.com ${hostname}\n";
+       print HOSTS "$ctx->{ipv4} ${hostname}.$ctx->{dnsname} ${hostname}\n";
+       print HOSTS "$ctx->{ipv6} ${hostname}.$ctx->{dnsname} ${hostname}\n";
        close(HOSTS);
 
        my $configuration = "--configfile=$ctx->{smb_conf}";