From 1a95a8e9cc6a9fbd345b7475464b4c0d3feaec02 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 21 May 2010 20:59:03 +0000 Subject: [PATCH] -Specify the ddns-hostname on nodes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6205 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 54cfb84f6..6cdc211bb 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 = 'ddns-hostname \"'.$node.'\"; send host-name \"'.$node.'\";'.$lstatements; } else { - $lstatements = 'send host-name \"'.$node.'\";'; + $lstatements = 'ddns-hostname \"'.$node.'\"; send host-name \"'.$node.'\";'; } print $omshell "set statements = \"$lstatements\"\n"; }