[Samba] smbclient is SLOWWWWWW; getaddrinfo failed

Rowland Penny rpenny at samba.org
Thu Sep 7 08:08:01 UTC 2017


On Wed, 06 Sep 2017 16:41:13 -0700
toddandmargo via samba <samba at lists.samba.org> wrote:

> # rpm -qa samba
> samba-4.6.7-0.fc26.x86_64
> 
> 
> Hi All,
> 
> # smbclient -L FedoraServer -U workcentre -W xxxxx
> 
> takes about 18 second to ask for the password.  (Windows is slow too.)
> 
> Me thinks it has to do with this error
> from /var/log/samba/samba-log.192.168.255.12
> 
>        get_mydnsfullname: getaddrinfo failed for name
> FedoraServer.xxxxx.local [Unknown error]
> 
> When I put a tail on the above log, this is where it hangs until the
> password prompt comes up
> 
> 
> How do I fix this?
> 
> Many thanks,
> -T
> 
> 
> 
> # more /etc/hosts
> 127.0.0.1   server.storall.local localhost localhost.localdomain
> localhost4 loca lhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6
> localhost6.localdomain6
> 

Hi, are you using dhcp ? 
If you are, change /etc/hosts to this:

127.0.0.1 localhost
::1 localhost

If you aren't, then 'server.storall.local' should point to its IP not
'127.0.0.1'

Rowland



More information about the samba mailing list