Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] nmap - device name.
Date: Sun, 12 Feb 2017 02:13:53
Message-Id: 589FC4F5.6000400@sys-concept.com
In Reply to: Re: [gentoo-user] nmap - device name. by Nils Freydank
1 On 02/11/2017 02:10 PM, Nils Freydank wrote:
2 > Hi Thelma and others,
3 >
4 > On Fri Feb 10 2017, 18:34:34 CET wrote thelma@×××××××××××.com:
5 >> When I scan my local network:
6 >> nmap -sn 10.10.0.0/24
7 >>
8 >> It prints all the devices connected to it but sometimes it prints the
9 >> device "name" and sometimes it doesn't eg:
10 >>
11 >> Nmap scan report for iaxy (10.0.0.108)
12 >> Host is up (-0.095s latency).
13 >> MAC Address: 00:0F:D3:00:30:DD (Digium)
14 >>
15 >> Nmap scan report for 10.10.0.3
16 >> Host is up (0.00017s latency).
17 >> MAC Address: 54:7F:54:76:61:0D (Ingenico)
18 >>
19 >> "...for "name" + IP"
20 >> "...for + IP
21 >>
22 >> Where is it taking the "name" from?
23 >> It would like to assign a label "name" to all devices.
24 >> --
25 >> Thelma
26 >
27 > I’d say that the name "iaxy" is a via DNS (reverse) resolved hostname; maybe
28 > there is a DNS server running (or there are entries in /etc/hosts) or it’s just
29 > zeroconf/bonjour[1], which runs nowadays virtually everywhere.
30 >
31 > The other part looks to me as vendors names nmap got from the MAC addresses
32 > which first parts are vendor specific.
33 >
34 > A quick search[2] gave me these two results (beside some other ones) who seem
35 > to confirm my thoughts:
36 >
37 > http://superuser.com/questions/702309/how-to-get-device-name-from-scan-like-nmap-on-linux
38 > http://stackoverflow.com/questions/27817412/why-nmap-sometimes-does-not-show-device-name
39 >
40 > [1] https://en.wikipedia.org/wiki/Zero-configuration_networking
41 > [2] https://duckduckgo.com/?q=nmap+device+names&t=ffab&ia=qa
42 >
43 > Hope that helps you :)
44 >
45 > PS: What exactly does '-sn' (or is it just a typo)? My nmap doesn't complain
46 > when I use it, but the manpage only knows about '-sN' here
47 > (net-analyzer/nmap-7.40).
48
49 -sn: Ping Scan - disable port scan
50
51 The only difference between the two networks that I'm aware of is one
52 runs dd-wrt on Linksys router and the other (with names showing) runs on
53 Asus NT-R16 router.
54
55 Non of them run DNS server to my knowledge.
56 --
57 Thelma