2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Use option type=A for nslookup

This commit is contained in:
cxhong 2019-11-13 09:24:57 -05:00
parent 22c07ca8eb
commit 42915fefe0
2 changed files with 2 additions and 2 deletions

View File

@ -448,7 +448,7 @@ sub is_dns_ready {
my $hostname = shift;
my $domain = shift;
my $output = `nslookup $mnip $serverip 2>&1`;
my $output = `nslookup -type=A $mnip $serverip 2>&1`;
if ($?) {
return 0;

View File

@ -1006,7 +1006,7 @@ sub check_dns_service {
} else {
# if there is no sn, nslookup mnip
my $nslkp = `nslookup $serverip $serverip 2>&1`;
my $nslkp = `nslookup -type=A $serverip $serverip 2>&1`;
chomp($nslkp);
my $tmp = grep { $_ =~ "Server:[\t\s]*$serverip" } split(/\n/, $nslkp);
if (!$tmp) {