Skip to content

Commit

Permalink
Do not include empty default TLD into FQDN.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Jun 30, 2015
1 parent a5ae4e9 commit d442e80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/DnsZones.pm
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ sub GetDefaultSOA {

my $fqdn = $self->GetFQDN();
if ($fqdn eq "") {
my $tld = $Hostname::DefaultDomain;
$fqdn = "linux.$tld";
my $tld = Hostname->DefaultDomain();
if($tld ne "")
{
$fqdn = "linux.$tld";
}
}

$fqdn = "$fqdn.";
Expand Down

0 comments on commit d442e80

Please sign in to comment.