diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 850af9edf..e3160be2c 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -313,7 +313,7 @@ sub addnode $hname = $node; } #Default to hostname equal to nodename unless ($mac) { next; } #Skip corrupt format - my $ip = xCAT::Utils::getNodeIPaddress($hname); + my $ip = inet_aton(inet_ntoa($hname)); #xCAT::Utils::getNodeIPaddress($hname); if ($hname eq '*NOIP*') { $hname = $node . "-noip".$mac; $hname =~ s/://g;