the fix for hostname alias

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2012-02-16 02:38:43 +00:00
parent 58511e94d6
commit e77d5efd6c

View File

@ -1034,6 +1034,12 @@ sub find_nameserver_for_dns {
}
}
}
if (defined $ctx->{aliases}->{$node}) {
foreach (keys %{$ctx->{aliases}->{$node}}) {
push @rrcontent, "$_ IN CNAME $name";
}
}
if ($ctx->{deletemode}) {
push @rrcontent,"$name TXT";
push @rrcontent,"$name A";