diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index edf3bd591..15b96132f 100755 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -205,6 +205,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; } }