From e9af6db2fd7291907b035e1c9a0ebda5f4a67fb6 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 24 Jan 2011 16:10:39 +0000 Subject: [PATCH] -Have DHCPv4 specific operation specifically use IPv4 name resolution git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;