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:
parent
22c07ca8eb
commit
42915fefe0
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user