2

I'm trying to figure out how to find the hostnames of computers on the LAN network. I put in the known address of a computer, but I'm getting an error I don't understand.

michaelsavich@noranetserver:~$ host 10.1.10.10
10.10.1.10.in-addr.arpa has no PTR record

Both computers are on the same LAN, so the issue isn't with port forwarding or anything. For the record, the computer I ran host on was running Ubuntu Server 14.04 LTS, and 10.1.10.10 should belong to a MacBook.

PopKernel
  • 419
  • 1
    This is not possible as far as I know unless you have set up a local nameserver for your network. – terdon May 21 '14 at 18:06
  • A nameserver, huh? What should I look into to go about implementing that? – PopKernel May 21 '14 at 18:07
  • Look up Dnsmasq - it runs on a server usually. https://help.ubuntu.com/community/Dnsmasq – NGRhodes May 21 '14 at 21:33
  • But wait a second. All I really want to do is see the names of the computers, like in the network pane on OSX/Windows. I can see the names from my Macbook in the Finder GUI, but I want to be able to replicate that behavior on Ubuntu Server. – PopKernel May 22 '14 at 14:29

3 Answers3

1

I would use nmap to do ping scanning (as root) e.g.

sudo nmap -sP 192.168.1.*

If nmap is not installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install nmap
Mitch
  • 107,631
NGRhodes
  • 9,490
  • 1
    sudo nmap -sP 192.168.1.0/24 or another netmask also works. But this solution only works if PTR records are set up in a nameserver (which the lookup error shows is not the case). – belacqua May 21 '14 at 21:16
0

I think if you are not using dynamic dns , you should write the name of the PC manually in /etc/bind/db.192 which is the reverse , then you can try host or dig tool .

This would help you to configure dns : Site

nux
  • 38,017
  • 35
  • 118
  • 131
-1

How about try to listing all out first, in terminal:

arp -a

from that, maybe you can figure out which names is which. Hope this can help too. (How to find a computer name in a LAN from the IP address?)