Anyone know how to get HOSTNAME information when using nmap?
Got an ip address and I want to find out the hostname. have been through all (well nearly all commands ;-) in nmap and all it comes back with is the usual details but no hostname.
Is this something that can be done using nmap????
Will keep on cracking at it but if anyone can give a quick answer that would be mighty cool of you.
Using nmap V 3.00 on RH 9
Thanks in advance
Have a good one.
This is the deal with nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.
used dig and host and still get the same result....i.e can't get the hostname...
Still working on it...there has to be a way
Is this just a local hostname or a registered domain? AFAIK, you can't get the local hostname with nmap (I've tried, too). LinNeighborhood and other such programs do procure it, however, so it is possible somehow. :?
I'll have a look at LinNeighborhood, nice one....
Just trying to find the name of a machine on my network, got it's IP but having the host name would be well wicked, naming conventions are a bit like buying a house....... location, location, location
will keep cracking at it :roll:
LinNeighborhood is a frontend to the samba client so it gets the hostname through netbios. Under linux servers, one way by which hostnames on a network can be found is using SNMP protocol if the remote machine supports snmp queries. you need the snmputils package installed and could try an 'snmpget'. For other method the way to get the host name is from a nameserver