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
Ashish Yadav
2015-Feb-09 07:29 UTC
[Samba] smbclient works with IP address but not hostname
Hi, On Mon, Feb 9, 2015 at 12:29 PM, Graeme Russ <gruss at tss-engineering.com> wrote:> 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 >Have you tried with any Domain Users, # smbclient -L fs1 -U <Domain_User> --Regards Ashishkumar S. Yadav
Graeme Russ
2015-Feb-09 07:54 UTC
[Samba] smbclient works with IP address but not hostname
On 09/02/15 18:29, Ashish Yadav wrote:> Hi, > > On Mon, Feb 9, 2015 at 12:29 PM, Graeme Russ <gruss at tss-engineering.com > <mailto:gruss at tss-engineering.com>> wrote: > > 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> > <mailto: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 <http://tss-engineering.com> > search tss-engineering.com <http://tss-engineering.com> > tss-engineering.com <http://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 <http://fs1.tss-engineering.com> > (192.168.1.10) 56(84) bytes of data. > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=1 ttl=64 > time=0.483 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=2 ttl=64 > time=0.435 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=3 ttl=64 > time=0.463 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=4 ttl=64 > time=0.447 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=5 ttl=64 > time=0.418 ms > > --- fs1.tss-engineering.com <http://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 > > > Have you tried with any Domain Users, > > # smbclient -L fs1 -U <Domain_User>[gruss at ws1 ~]$ smbclient -L fs1 -U gruss Enter gruss's password: protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE Regards, Graeme
Graeme Russ
2015-Feb-16 02:43 UTC
[Samba] smbclient works with IP address but not hostname
Hi Ashish, It looks like I found a solution... I noticed when I booted Windows 7 on WS1 I had the same problem and doing a DNS resolution resulted in an IPv6 address So I googled 'samba turn off ipv6' and found this: https://bbs.archlinux.org/viewtopic.php?id=133188 So I changed my smb.conf accordingly and everything appears to work fine now Regards, Graeme On 09/02/15 18:29, Ashish Yadav wrote:> Hi, > > On Mon, Feb 9, 2015 at 12:29 PM, Graeme Russ <gruss at tss-engineering.com > <mailto:gruss at tss-engineering.com>> wrote: > > 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> > <mailto: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 <http://tss-engineering.com> > search tss-engineering.com <http://tss-engineering.com> > tss-engineering.com <http://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 <http://fs1.tss-engineering.com> > (192.168.1.10) 56(84) bytes of data. > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=1 ttl=64 > time=0.483 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=2 ttl=64 > time=0.435 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=3 ttl=64 > time=0.463 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=4 ttl=64 > time=0.447 ms > 64 bytes from FS1.tss-engineering.com > <http://FS1.tss-engineering.com> (192.168.1.10): icmp_seq=5 ttl=64 > time=0.418 ms > > --- fs1.tss-engineering.com <http://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 > > > Have you tried with any Domain Users, > > # smbclient -L fs1 -U <Domain_User> > > > --Regards > Ashishkumar S. Yadav