diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 7b49bec3e..6d1969065 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -922,9 +922,10 @@ sub add_or_delete_records { $ctx->{currnode}=$node; $ctx->{currname}=$name; $ctx->{currrevname}=$ip; - unless ($domain =~ /\.$/) { $domain = $domain.'.'; } #example.com becomes example.com. + my $tmpdm; + unless ($domain =~ /\.$/) { $tmpdm = $domain.'.'; } #example.com becomes example.com. find_nameserver_for_dns($ctx,$revzone); - find_nameserver_for_dns($ctx,$domain); + find_nameserver_for_dns($ctx,$tmpdm); } } my $zone;