diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 2c375d4d3..efc1d7838 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -973,11 +973,13 @@ if ($inet6support) { $peerfqdn=$peerhost; my $peerhostorg=$peerhost; # save original with domain for validation - my @hosts; - push (@hosts, $peerhost); - my $nd = xCAT::NetworkUtils->getNodeDomains(\@hosts); - my %nodedomains = %$nd; - $domain = $nodedomains{$peerhost}; + if ($peerhost) { + my @hosts; + push (@hosts, $peerhost); + my $nd = xCAT::NetworkUtils->getNodeDomains(\@hosts); + my %nodedomains = %$nd; + $domain = $nodedomains{$peerhost}; + } if ($domain) { # strip off domain if set