diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 19eabc60c..406e712cf 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -307,10 +307,10 @@ sub addnode print $omshell "set ip-address = $ip\n"; if ($lstatements) { - $lstatements = 'send host-name \"'.$node.'\";'.$lstatements; + $lstatements = 'option host-name \"'.$node.'\"; send host-name \"'.$node.'\";'.$lstatements; } else { - $lstatements = 'send host-name \"'.$node.'\";'; + $lstatements = 'option host-name \"'.$node.'\"; send host-name \"'.$node.'\";'; } print $omshell "set statements = \"$lstatements\"\n"; }