From e4033f21f01e12762f7de7026e3c23c90135a06b Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 13 Nov 2009 08:00:51 +0000 Subject: [PATCH] add --system-dns to the nmap command, without this flag, the nmap may returns noping for pingable nodes due to DNS related issues git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index c928d529b..f38e3f023 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -142,7 +142,7 @@ sub nmap_pping { foreach (@$nodes) { $deadnodes{$_}=1; } - open (FPING, "nmap -PE --send-ip -sP ".join(' ',@$nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!"); + open (FPING, "nmap -PE --system-dns --send-ip -sP ".join(' ',@$nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!"); my $node; while () { if (/Host (.*) \(.*\) appears to be up/) {