Graeme Russ
2015-Feb-08 05:53 UTC
[Samba] smbclient works with IP address but not hostname
Hi All, I've configured a Fedora 20 server with samba to share a few user directories and a printer. From a Windows 8 laptop, I am able to address the samba server by it's name (fs1) From a Fedora 20 client (ws1), I am able to address the samba server by IP address, but not by name. [gruss at ws1 ~]$ smbclient --version Version 4.1.15 [gruss at ws1 ~]$ smbclient -L 192.168.1.10 Enter gruss's password: Domain=[TSSENG] OS=[Unix] Server=[Samba 4.1.15] Sharename Type Comment --------- ---- ------- homes Disk Home Directories gruss Disk dnla Disk charlee Disk IPC$ IPC IPC Service (Samba Server Version 4.1.15) MFCJ5320DW Printer MFCJ5320DW Domain=[TSSENG] OS=[Unix] Server=[Samba 4.1.15] Server Comment --------- ------- FS1 Samba Server Version 4.1.15 WS1 Samba Server Version 4.1.15 Workgroup Master --------- ------- TSSENG FS1 WORKGROUP CREEPYCONNORS [gruss at ws1 ~]$ smbclient -L fs1 Enter gruss's password: protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE The server is able to fully resolve ws1. I had to first start the nmb service on ws1 with: [root at ws1 gruss]# systemctl start nmb.service [root at ws1 gruss]# systemctl enable nmb.service [root at fs1 samba]# nmblookup --version Version 4.1.15 [root at fs1 samba]# nmblookup ws1 192.168.1.209 ws1<00> And the creepyconnors laptop: [root at fs1 samba]# nmblookup creepyconnors 192.168.1.211 creepyconnors<00> Here are the outputs from testparm: [root at fs1 samba]# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[homes]" Processing section "[printers]" Processing section "[gruss]" Processing section "[dnla]" Processing section "[charlee]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = TSSENG server string = Samba Server Version %v interfaces = lo, em1, 192.168.1.10/24 guest account = dlna log file = /var/log/samba/log.%m max log size = 50 printcap name = cups preferred master = Yes idmap config * : backend = tdb guest ok = Yes hosts allow = 127.0.0.1, 192.168.1.0/255.255.255.0 cups options = raw [homes] comment = Home Directories read only = No [printers] comment = All Printers path = /var/spool/samba printable = Yes print ok = Yes browseable = No [gruss] path = /home/gruss valid users = gruss read only = No [dnla] path = /home/dlna read only = No [charlee] path = /home/charlee valid users = charlee read only = No [root at ws1 gruss]# testparm Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[homes]" Processing section "[printers]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = TSSENG server string = Samba Server Version %v log file = /var/log/samba/log.%m max log size = 50 idmap config * : backend = tdb cups options = raw [homes] comment = Home Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes print ok = Yes browseable = No Any ideas where I should start looking? Regards, Graeme
Ashish Yadav
2015-Feb-09 06:50 UTC
[Samba] smbclient works with IP address but not hostname
Hi, On Sun, Feb 8, 2015 at 11:23 AM, Graeme Russ <gruss at tss-engineering.com> wrote:> Hi All, > > I've configured a Fedora 20 server with samba to share a few user > directories and a printer. > > From a Windows 8 laptop, I am able to address the samba server by it's > name (fs1) > > From a Fedora 20 client (ws1), I am able to address the samba server by IP > address, but not by name. > > [gruss at ws1 ~]$ smbclient --version > Version 4.1.15 > > [gruss at ws1 ~]$ smbclient -L 192.168.1.10 > Enter gruss's password: > Domain=[TSSENG] OS=[Unix] Server=[Samba 4.1.15] > > Sharename Type Comment > --------- ---- ------- > homes Disk Home Directories > gruss Disk > dnla Disk > charlee Disk > IPC$ IPC IPC Service (Samba Server Version 4.1.15) > MFCJ5320DW Printer MFCJ5320DW > Domain=[TSSENG] OS=[Unix] Server=[Samba 4.1.15] > > Server Comment > --------- ------- > FS1 Samba Server Version 4.1.15 > WS1 Samba Server Version 4.1.15 > > Workgroup Master > --------- ------- > TSSENG FS1 > WORKGROUP CREEPYCONNORS > > > [gruss at ws1 ~]$ smbclient -L fs1 > Enter gruss's password: > protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE > > The server is able to fully resolve ws1. I had to first start the nmb > service on ws1 with: > > [root at ws1 gruss]# systemctl start nmb.service > [root at ws1 gruss]# systemctl enable nmb.service > > [root at fs1 samba]# nmblookup --version > Version 4.1.15 > > [root at fs1 samba]# nmblookup ws1 > 192.168.1.209 ws1<00> > > And the creepyconnors laptop: > > [root at fs1 samba]# nmblookup creepyconnors > 192.168.1.211 creepyconnors<00> > > Here are the outputs from testparm: > > > [root at fs1 samba]# testparm > Load smb config files from /etc/samba/smb.conf > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > Processing section "[homes]" > Processing section "[printers]" > Processing section "[gruss]" > Processing section "[dnla]" > Processing section "[charlee]" > Loaded services file OK. > Server role: ROLE_STANDALONE > Press enter to see a dump of your service definitions > > [global] > workgroup = TSSENG > server string = Samba Server Version %v > interfaces = lo, em1, 192.168.1.10/24 > guest account = dlna > log file = /var/log/samba/log.%m > max log size = 50 > printcap name = cups > preferred master = Yes > idmap config * : backend = tdb > guest ok = Yes > hosts allow = 127.0.0.1, 192.168.1.0/255.255.255.0 > cups options = raw > > [homes] > comment = Home Directories > read only = No > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > print ok = Yes > browseable = No > > [gruss] > path = /home/gruss > valid users = gruss > read only = No > > [dnla] > path = /home/dlna > read only = No > > [charlee] > path = /home/charlee > valid users = charlee > read only = No > > [root at ws1 gruss]# testparm > Load smb config files from /etc/samba/smb.conf > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > Processing section "[homes]" > Processing section "[printers]" > Loaded services file OK. > Server role: ROLE_STANDALONE > Press enter to see a dump of your service definitions > > [global] > workgroup = TSSENG > server string = Samba Server Version %v > log file = /var/log/samba/log.%m > max log size = 50 > idmap config * : backend = tdb > cups options = raw > > [homes] > comment = Home Directories > read only = No > browseable = No > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > print ok = Yes > browseable = No > > Any ideas where I should start looking? > >Please post your /etc/hosts and /etc/resolv.conf . Send the output of "ping -c5 fs1" command from your machine?> Regards, > > > Graeme > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Graeme Russ
2015-Feb-09 06:59 UTC
[Samba] smbclient works with IP address but not hostname
Hi Ashish, On 09/02/15 17:50, Ashish Yadav wrote:> Hi, > > On Sun, Feb 8, 2015 at 11:23 AM, Graeme Russ <gruss at tss-engineering.com > <mailto:gruss at tss-engineering.com>> wrote: > > Hi All, > > I've configured a Fedora 20 server with samba to share a few user > directories and a printer. > > From a Windows 8 laptop, I am able to address the samba server by > it's name (fs1) > > From a Fedora 20 client (ws1), I am able to address the samba > server by IP address, but not by name. >[snip]> > Any ideas where I should start looking? > > > Please post your /etc/hosts and /etc/resolv.conf . > > Send the output of "ping -c5 fs1" command from your machine?[gruss at ws1 ~]$ cat /etc/resolv.conf # Generated by NetworkManager domain tss-engineering.com search tss-engineering.com tss-engineering.com. nameserver 192.168.1.1 nameserver fd78:beb4:a733::1 [gruss at ws1 ~]$ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 [gruss at ws1 ~]$ ping -c5 fs1 PING fs1.tss-engineering.com (192.168.1.10) 56(84) bytes of data. 64 bytes from FS1.tss-engineering.com (192.168.1.10): icmp_seq=1 ttl=64 time=0.483 ms 64 bytes from FS1.tss-engineering.com (192.168.1.10): icmp_seq=2 ttl=64 time=0.435 ms 64 bytes from FS1.tss-engineering.com (192.168.1.10): icmp_seq=3 ttl=64 time=0.463 ms 64 bytes from FS1.tss-engineering.com (192.168.1.10): icmp_seq=4 ttl=64 time=0.447 ms 64 bytes from FS1.tss-engineering.com (192.168.1.10): icmp_seq=5 ttl=64 time=0.418 ms --- fs1.tss-engineering.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4001ms rtt min/avg/max/mdev = 0.418/0.449/0.483/0.026 ms Regards, Graeme
Apparently Analagous Threads
- smbclient works with IP address but not hostname
- Samba4 - Corrupted group caused stop of replication - "Object class violation"
- smbclient works with IP address but not hostname
- acces to samba share failed
- aggregate wind direction data with wind speed required