[Samba] smbclient works with IP address but not hostname

Graeme Russ gruss at tss-engineering.com
Sun Feb 8 23:59:42 MST 2015


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


More information about the samba mailing list