From 980ce21a5b80f4cd40f9c3876c09a885918491ce Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Sep 2014 14:45:26 +0200 Subject: selftest: Use the dns domain in the hosts file. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- selftest/target/Samba4.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 28c287ed19..342de582a7 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}"; -- cgit