diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index 8f64c8913..f384ae82a 100755 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -203,6 +203,13 @@ sub addotherinterfaces { $itf = $node . $itf; } + + #lookup the domain for the ip address + #if failed, use the domain passed in + my ($mydomain,$mynet)=getIPdomain($ip); + if($mydomain){ + $domain=$mydomain; + } addnode $callback, $itf, $ip, '', $domain; } }