diff --git a/xCAT-server-2.0/lib/xcat/plugins/bind.pm b/xCAT-server-2.0/lib/xcat/plugins/bind.pm index 2a77815b3..6c919ebb3 100755 --- a/xCAT-server-2.0/lib/xcat/plugins/bind.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/bind.pm @@ -116,7 +116,7 @@ LINE: while(){ ($data,$comment) = split('#', $_, 2); ($addr, $names) = split(' ', $data, 2); if ($names =~ /^[ \t]*$/) { - $callback->({data=>["Bad line in hosts file ignored '$_'"]}); + #$callback->({data=>["Bad line in hosts file ignored '$_'"]}); next LINE; } @@ -142,7 +142,7 @@ LINE: while(){ # Check that the address is in the address list. $match = 'none'; foreach $netpat (@Netpatterns){ - $match = $netpat, last if ($addr =~ /^$netpat\./); + $match = $netpat, last if ($addr =~ /^$netpat\./ or $addr =~ /^$netpat$/); } next if ($match eq 'none');