Resolving Host/System name

Resolving Host/System name

Postby netcompsys » Wed Feb 25, 2015 9:06 pm

I have just completed a first time install followed by an upgrade on a RPi B+ with an added 1 TB USB disc

I have set the name to PiNAS and the ip address is fixed to 192.168.253.220 (192.168.253.x being my net) which is outside the DHCP servers range.

I have set up a number of SAMBA shares, Photos, Music etc as Public with no username/pwd

The Rpi does not appear in Windows explorer as PiNAS as I expect, but I can access shares and copy files fine if I use the ip address, eg \\192.168.253.220\music

If I go to the command prompt and ping the RPi using the System name then it is resolved satisfactorily

Clearly some sort of name resolution issue, but as a complete linux beginner, any pointers or suggestions would be welcome

cheers
kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Re: Resolving Host/System name

Postby uelpenich » Wed Feb 25, 2015 10:42 pm

Hi Kevin,
The Rpi does not appear in Windows explorer as PiNAS as I expect, . . .
Seems to be a Windows problem. Some of my WinPCs have the same problem, others not.
I suppose a WINS server or Netbios problem.

Werner
uelpenich
Donator VIP
Donator VIP
 
Posts: 120
Joined: Sun Jun 12, 2011 4:45 pm
Location: Cologne, Germany

Re: Resolving Host/System name

Postby netcompsys » Wed Feb 25, 2015 11:03 pm

I have used the old trick of editing the hosts file on the PC to add the ip address and host name, this allows me to use the host name in that PC's browser address bar and to map a network drive using the name, but the NAS is not appearing as a network device in explorer so i can't easily browse the available shares, so is it not making its name known on the LAN?

kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Re: Resolving Host/System name

Postby Jocko » Wed Feb 25, 2015 11:50 pm

Hi netcompsys,

I am pretty sure that you did not set the workgroup in the LAN menu:

See : viewtopic.php?f=5&t=2041&p=17023&hilit=workgroup#p17023
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Resolving Host/System name

Postby netcompsys » Thu Feb 26, 2015 12:11 am

Thanks for your suggestion

The default Workgroup is mshome but I did change it to workgroup to match my network and then rebooted as part of the original install/setup process

Kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Re: Resolving Host/System name

Postby Jocko » Thu Feb 26, 2015 8:42 am

:scratch
Now, It is Ok ?
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Resolving Host/System name

Postby netcompsys » Thu Feb 26, 2015 11:46 am

No the problem still exists, the host name is not being resolved by windows. It is not clear to me still if this a problem with the NAS operating system or with windows

as I said before I can ping the NAS host from a command window and this does resolve the name to the address

editing the hosts file allows me to use the hostname in the address bar of explorer and the browser, eg \\PINAS\music but I cannot see the NAS in the networks section of explorer and so cannot browse the shares

I have tried reverting both the windows PC and the NAS to workgroup MSHOME and restarting both but this has not resolved the problem

kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Re: Resolving Host/System name

Postby Jocko » Thu Feb 26, 2015 7:24 pm

Hi netcompsys,

I assume that you use windows.

So check if computer browser service is running.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Resolving Host/System name

Postby netcompsys » Thu Feb 26, 2015 8:04 pm

Yes indeed, Windows 8.1 x2 and Windows 7

Computer Browser Service is running

The 3 windows PC's have no problems seeing each other or my WD MyCloud NAS box

thanks
kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Re: Resolving Host/System name

Postby netcompsys » Thu Feb 26, 2015 8:42 pm

Stumbling around following a few diagnostic threads elsewhere on the net

Code: Select all
root@PiNAS:/ # ping pinas
PING pinas (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.407 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.299 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.302 ms
64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.303 ms
64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.293 ms
64 bytes from 127.0.0.1: seq=5 ttl=64 time=0.301 ms
64 bytes from 127.0.0.1: seq=6 ttl=64 time=0.297 ms
64 bytes from 127.0.0.1: seq=7 ttl=64 time=0.295 ms
64 bytes from 127.0.0.1: seq=8 ttl=64 time=0.301 ms
64 bytes from 127.0.0.1: seq=9 ttl=64 time=0.295 ms
64 bytes from 127.0.0.1: seq=10 ttl=64 time=0.294 ms
64 bytes from 127.0.0.1: seq=11 ttl=64 time=0.297 ms
64 bytes from 127.0.0.1: seq=12 ttl=64 time=0.302 ms
64 bytes from 127.0.0.1: seq=13 ttl=64 time=0.301 ms
64 bytes from 127.0.0.1: seq=14 ttl=64 time=0.297 ms
^C
--- pinas ping statistics ---
15 packets transmitted, 15 packets received, 0% packet loss
round-trip min/avg/max = 0.293/0.305/0.407 ms

root@PiNAS:/ # nmbd -V
Version 3.0.37

root@PiNAS:/ # ps -ef | grep nmbd
root       633     1  0 16:28 ?        00:00:00 /usr/sbin/nmbd -D -l /var/log/samba
root      1140  1113  0 20:20 pts/0    00:00:00 grep nmbd

root@PiNAS:/ # ps -ef | grep smbd
root       636     1  0 16:28 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root       637   636  0 16:28 ?        00:00:00 /usr/sbin/smbd -D -l /var/log/samba
root      1024   636  0 19:21 ?        00:00:06 /usr/sbin/smbd -D -l /var/log/samba
root      1170  1113  0 20:28 pts/0    00:00:00 grep smbd

root@PiNAS:/ # ps -ef | grep nmbd
root       633     1  0 16:28 ?        00:00:00 /usr/sbin/nmbd -D -l /var/log/samba
root      1175  1113  0 20:28 pts/0    00:00:00 grep nmbd

root@PiNAS:/ # nmblookup -B pinas __SAMBA__
querying __SAMBA__ on 127.0.0.1
192.168.253.220 __SAMBA__<00>

root@PiNAS:/ # ls /var/log/samba
cores  log.nmbd  log.smbd

root@PiNAS:/ # tail /var/log/samba/log.nmbd
[2011/11/16 12:00:20, 0] nmbd/nmbd.c:main(723)
  Netbios nameserver version 3.0.37 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009

root@PiNAS:/ # tail /var/log/samba/log.smbd
[2015/02/26 17:56:38, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.253.114. Error = Connection reset by peer
[2015/02/26 18:28:49, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.253.114. Error = Connection reset by peer
[2015/02/26 19:00:55, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.253.114. Error = Connection reset by peer
[2015/02/26 19:33:01, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.253.114. Error = Connection reset by peer
[2015/02/26 20:05:13, 0] lib/util_sock.c:read_data(534)
  read_data: read failure for 4 bytes to client 192.168.253.114. Error = Connection reset by peer
root@PiNAS:/ #


As a complete beginner in linux but reading these threads, all seems ok in the results above so far...

kevin
netcompsys
 
Posts: 7
Joined: Tue Feb 24, 2015 10:21 pm

Next

Return to Raspberry Pi 1, 2, 3 and 4

Who is online

Users browsing this forum: No registered users and 1 guest

cron