Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
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}";