From e77d5efd6ce39569d540d298590646c0e823ebcb Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 16 Feb 2012 02:38:43 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/ddns.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 70699653c..9935dd4c0 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -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";