From eea5c1c7690e63761b896f543c16fa22bfc8cd3c Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 12 Aug 2011 11:17:36 +0000 Subject: [PATCH] The user provided fix for makedns issue of domain without dots, introduced new bug. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;