You are not logged in.

#1 2016-04-07 09:47:07

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

No more NetBIOS name resolution from ping/ssh

Hello,
I have installed some time ago the package "smbclient" in order to resolve IP addresses on my network.
However, some updates ago, the NetBIOS resolution went broke and now I can't resolve the host name properly.
Can you help me digging in stuff, in order to understand? Thank you.

Offline

#2 2016-04-07 14:44:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,770

Re: No more NetBIOS name resolution from ping/ssh

What are the contents of your /etc/nsswitch.conf file?  Ensure you have wins in the hosts: line.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#3 2016-04-07 14:45:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: No more NetBIOS name resolution from ping/ssh

Online

#4 2016-04-09 09:35:02

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

Re: No more NetBIOS name resolution from ping/ssh

@Scimmia thanks for the link. I just installed the samba package and started winbindd. Will reboot to see if it works.

Offline

#5 2016-04-09 09:52:34

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

Re: No more NetBIOS name resolution from ping/ssh

Update: still not working.
I have installed the samba package and enabled the winbindd service, also rebooted to be sure.

$ systemctl status winbindd.service 
● winbindd.service - Samba Winbind daemon
   Loaded: loaded (/usr/lib/systemd/system/winbindd.service; enabled; vendor preset: disabled)
   Active: active (running) since sab 2016-04-09 11:46:03 CEST; 4min 59s ago
  Process: 850 ExecStart=/usr/bin/winbindd -D (code=exited, status=0/SUCCESS)
 Main PID: 925 (winbindd)
    Tasks: 2 (limit: 512)
   CGroup: /system.slice/winbindd.service
           ├─925 /usr/bin/winbindd -D
           └─928 /usr/bin/winbindd -D

apr 09 11:45:58 antergos_E1-570G systemd[1]: Starting Samba Winbind daemon...
apr 09 11:46:03 antergos_E1-570G systemd[1]: Started Samba Winbind daemon.
apr 09 11:46:03 antergos_E1-570G winbindd[925]: [2016/04/09 11:46:03.471486,  0] ../source3/winbindd/winbindd_cache.c:3245(initialize_winbindd_cache)
apr 09 11:46:03 antergos_E1-570G winbindd[925]:   initialize_winbindd_cache: clearing cache and re-creating with version number 2
apr 09 11:46:03 antergos_E1-570G winbindd[925]: [2016/04/09 11:46:03.791771,  0] ../lib/util/become_daemon.c:124(daemon_ready)
apr 09 11:46:03 antergos_E1-570G winbindd[925]:   STATUS=daemon 'winbindd' finished starting up and ready to serve connections

$ cat /etc/nsswitch.conf 
# Begin /etc/nsswitch.conf

passwd: files
group: files
shadow: files

publickey: files

hosts: files mdns dns wins myhostname  
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

# End /etc/nsswitch.conf

$

Offline

#6 2016-04-18 11:39:46

ItachiSan
Member
Registered: 2013-09-02
Posts: 31

Re: No more NetBIOS name resolution from ping/ssh

I have also tried to disable my firewall (ufw) and it is not working.

Offline

#7 2016-05-13 10:43:45

ccpaging
Member
Registered: 2012-01-24
Posts: 16

Re: No more NetBIOS name resolution from ping/ssh

Someone upgraded to 4.4.3, issue is gone. But I am no lucky. Downgrade samba, smbclient, libwbclient to 4.3.6, ping and smbnetfs are OK.

Last edited by ccpaging (2016-05-13 10:45:00)

Offline

Board footer

Powered by FluxBB