summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-09-01 14:45:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-09-01 15:47:33 +0200
commit980ce21a5b80f4cd40f9c3876c09a885918491ce (patch)
treecdb8dc15fd60658e97127d443802c81d08086363 /selftest
parent470e5b82222c214ad0cd06fb550d3221be2a7997 (diff)
downloadsamba-980ce21a5b80f4cd40f9c3876c09a885918491ce.tar.gz
selftest: Use the dns domain in the hosts file.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/target/Samba4.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 28c287ed19c..342de582a76 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -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}";