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";