From c4eabee3322c31931f8170389d6a4c2fb0b993ff Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 9 Aug 2011 07:50:36 +0000 Subject: [PATCH] Fixed the makedns issue for domain without dots. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 03cd0b133..88424638f 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -901,6 +901,7 @@ sub add_or_delete_records { $ctx->{currnode}=$node; $ctx->{currname}=$name; $ctx->{currrevname}=$ip; + unless ($domain =~ /\.$/) { $domain = $domain.'.'; } #example.com becomes example.com. find_nameserver_for_dns($ctx,$revzone); find_nameserver_for_dns($ctx,$domain); }