From c7a68e610636ecf504853a52c38539717f2f7099 Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 5 Aug 2011 08:27:59 +0000 Subject: [PATCH] support domain without dot. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10232 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 09c0e12b6..7dc8a72b9 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -874,6 +874,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); }