Nmap Development mailing list archives

Re: DNS broken in 5.21


From: David Fifield <david () bamsoftware com>
Date: Wed, 27 Jan 2010 17:03:53 -0700

On Wed, Jan 27, 2010 at 11:07:00PM +0100, nmap-dev () the-jedi co uk wrote:
First post!

I just installed the 64-Bit nmap 5.21 on my Fedora 12 machine and
noticed that it seems to have DNS issues:

# nmap www.google.com

Starting Nmap 5.21 ( http://nmap.org ) at 2010-01-27 22:58 CET
Failed to resolve given hostname/IP: www.google.com.  Note that you
can't use '/mask' AND '1-4,7,100-' style IP ranges
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.03 seconds

I get the same error message for hostnames that are in /etc/hosts, the
system hostname and even "localhost", so I can only conclude that DNS is
totally broken.

Thanks for writing. That's pretty strange, because Nmap should only
doing a gethostbyname to resolve the name.

Does the same thing happen with Ncat? Try

ncat -v www.google.com 80

If it happens in Ncat too, then it indicates a problem with the build
rather than with the code.

IP's work, and a 32-bit Fedora 9 machine works, so I guess its limited
to either Fedora 12 or 64-bit.

I've disabled IPv6 and have no IPv6 entries in my /etc/hosts or
/etc/resolv.conf and I've only got one network interface.

I tried the -R and --dns-servers options and it made no difference.

What's the preferred version to roll back to - 5.00?

Try 5.20 and see if that works. There were not that many changes between
5.20 and 5.21, so if that makes the problem go away there are fewer
things to check.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: