diff --git a/xCAT-probe/lib/perl/probe_utils.pm b/xCAT-probe/lib/perl/probe_utils.pm index 71e3ae8d6..6fbf59cd5 100644 --- a/xCAT-probe/lib/perl/probe_utils.pm +++ b/xCAT-probe/lib/perl/probe_utils.pm @@ -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; diff --git a/xCAT-probe/subcmds/xcatmn b/xCAT-probe/subcmds/xcatmn index 262a2c86e..f2f6ed1da 100755 --- a/xCAT-probe/subcmds/xcatmn +++ b/xCAT-probe/subcmds/xcatmn @@ -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) {