Take the tour ×  I am trying to use nmap to ping a list of
domains, i am using:  nmap -sP -iL /path/to/file/domains  The
ping works fine but in the output for domains that ping was
successful I get the domains ip like this:  Host is up (0.55s
latency).  Is there a way to get the output as domains instead
of ips?  share|improve this question You can use the "--dns-
servers" option to specify another dns server if your current
system DNS (from resolv.conf) doesn't have the reverse-DNS PTR
records that you need. –  Cory J Aug 25 '10 at 23:25 Did the -oG
flag actually provide the desired output? In my testing, it does
not. –  chuckx Aug 26 '10 at 22:53 add comment  3 Answers  up
vote 0 down vote accepted  add the -oG ("greppable output")
option.  share|improve this answer add comment  Assuming you
didn't scrub the output (i.e. is really one of the hosts you're
probing), the problem is that there is no PTR record in DNS for
the IP. That is, there is no reverse mapping from the IP -> FQDN
that nmap can present in th