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
This commit is contained in:
sjing 2011-08-09 07:50:36 +00:00
parent a9b90981b0
commit c4eabee332

View File

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