[Samba] smbclient works with IP address but not hostname
Graeme Russ
gruss at tss-engineering.com
Sat Feb 7 22:53:36 MST 2015
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
More information about the samba
mailing list