Find the answer to your Linux question:
Results 1 to 6 of 6
Hello everyone, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Location
    London Uk
    Posts
    12

    NMAP


    Hello everyone,

    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.

    G

  2. #2
    Just Joined!
    Join Date
    Nov 2002
    Location
    USA
    Posts
    99
    Just use: nslookup

  3. #3
    Just Joined!
    Join Date
    Apr 2004
    Location
    London Uk
    Posts
    12
    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

  4. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    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.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  5. #5
    Just Joined!
    Join Date
    Apr 2004
    Location
    London Uk
    Posts
    12
    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

  6. #6
    don
    don is offline
    Linux Newbie
    Join Date
    Apr 2004
    Posts
    101
    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
    I\'m just a simple fisherman blessed with a lot of friends

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •