2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00

support domain without dot.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10232 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2011-08-05 08:27:59 +00:00
parent 83afc23ff4
commit c7a68e6106

View File

@ -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);
}