Hallo zusammen,
mein Router (192.168.10.1) ist gleichzeitig DHCP Server als auch für die Namensauflösung zuständig. Am Router hängt ein Switch (ist gemanaget und hat eine feste IP 192.168.10.10). Am Switch hängt u.a. mein NAS (Name: schwarz; IP 192.168.10.5) und mein Rechner (DHCP).
Jetzt habe ich folgendes Problem. Führe ich einen Scan per nmap durch, werden die Namen nicht richtig aufgelöst:
~ > sudo nmap -sP 192.168.10.1/24 Starting Nmap 6.40 ( http://nmap.org ) at 2015-02-07 14:00 CET Nmap scan report for 192.168.10.1 #mein Router Host is up (0.00050s latency). Nmap scan report for unknown001132375461 (192.168.10.5)#mein NAS Host is up (0.00047s latency). Nmap scan report for unknownA01D485973C0 (192.168.10.10) #mein Switch Host is up (0.0010s latency). Nmap scan report for unknownE0699576A715 (192.168.10.14) #mein Client Host is up.
Ich würde gerne per Thunar auf das NAS zugreifen. Das setzt jedoch eine korrekte Namensauflösung voraus. Im Moment helfe ich mir damit, dass ich direkt die IP eingebe.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ~ > cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search localdomain ~ > cat /etc/nsswitch.conf # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat group: compat shadow: compat hosts: files mdns4_minimal [NOTFOUND=return] dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis |
~ > nm-tool IPv4 Settings: Address: 192.168.10.14 Prefix: 24 (255.255.255.0) Gateway: 192.168.10.1 DNS: 192.168.10.1
Interessant sind folgende Pings:
~ > ping -c2 schwarz PING schwarz (127.0.53.xx) 56(84) bytes of data. 64 bytes from 127.0.53.xx: icmp_seq=1 ttl=64 time=0.019 ms 64 bytes from 127.0.53.xx: icmp_seq=2 ttl=64 time=0.028 ms --- schwarz ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.019/0.023/0.028/0.006 ms ~ > ping -c2 schwarz.local PING schwarz.local (192.168.10.5) 56(84) bytes of data. 64 bytes from unknown001132375461 (192.168.10.5): icmp_seq=1 ttl=64 time=0.518 ms 64 bytes from unknown001132375461 (192.168.10.5): icmp_seq=2 ttl=64 time=0.537 ms --- schwarz.local ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.518/0.527/0.537/0.024 ms ~ > ping -c2 192.168.10.5 PING 192.168.10.5 (192.168.10.5) 56(84) bytes of data. 64 bytes from 192.168.10.5: icmp_seq=1 ttl=64 time=0.514 ms 64 bytes from 192.168.10.5: icmp_seq=2 ttl=64 time=0.511 ms --- 192.168.10.5 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.511/0.512/0.514/0.022 ms
Heißt für mich, dass er den Namen auflösen kann, aber nur mit Vorgabe von local. Er sollte doch aber eigentlich erstmal im LAN nach dem DNS gucken? Siehe Ausgabe von nsswitch.conf und DNS Vorgabe.
Richtig kurios wird es für mich, wenn ich eine virtuelle Maschine starte und nmap prüfen:
Nmap scan report for crunchbang (192.168.10.48) Host is up (-0.100s latency). MAC Address: 08:00:27:A4:44:73 (Cadmus Computer Systems)
Hier wird der Name richtig aufgelöst. Das ist jetzt alles nicht wirklich tragisch, da der Zugriff per IP möglich ist. Mich wundert nur, dass mit Windows 7 diese "Probleme" nicht auftreten und im Router auch die Hostnamen angezeigt werden. Vielleicht weiß ja einer eine Lösung?