CpServiceSPb .
2016-Sep-03 20:09 UTC
[Samba] Ubuntu, ping host by its NetBios name (Samba from sources) !
I have built from sources Samba4 4.4.4 version operation at Ubuntu 14.04 x64. There are three daemons are started: nmbd, smbd, winbindd. I excluded 'dns' from /etc/nsswitch.conf, 'host' line and added 'wins' . When I try ping some of Lan host by NetBios, I get ping: unknown host xxxxxx. So, how is to make possible to ping host at Ubuntu 14.04 by NetBios name which can be resolved by broadcast and if this type of resolving doesn' t do resolution, then switch to Samba4 wins ?
Rowland Penny
2016-Sep-03 21:28 UTC
[Samba] Ubuntu, ping host by its NetBios name (Samba from sources) !
On Sat, 3 Sep 2016 23:09:05 +0300 "CpServiceSPb . via samba" <samba at lists.samba.org> wrote:> I have built from sources Samba4 4.4.4 version operation at Ubuntu > 14.04 x64. > There are three daemons are started: nmbd, smbd, winbindd. > > I excluded 'dns' from /etc/nsswitch.conf, 'host' line and added > 'wins' . When I try ping some of Lan host by NetBios, I get ping: > unknown host xxxxxx. > > So, how is to make possible to ping host at Ubuntu 14.04 by NetBios > name which can be resolved by broadcast and if this type of resolving > doesn' t do resolution, then switch to Samba4 wins ?I don't think what you are trying to do will work and I also don't think you need to do it. You are trying to ping by the machines netbios name using wins, the machine netbios name is also the machines hostname, so by replacing 'wins' with 'dns' the ping will work, so why bother? Rowland
CpServiceSpb
2016-Sep-04 07:57 UTC
[Samba] Ubuntu, ping host by its NetBios name (Samba from sources) !
> I don't think what you are trying to do will work and I also don't > think you need to do it. You are trying to ping by the machines > netbios name using wins, the machine netbios name is also the machines > hostname, so by replacing 'wins' with 'dns' the ping will work, so why > bother?Some of hosts in my network I need to resolve are not presented and in my Dns server and not to be added to Dns, as following, it will not able to be resolved. I need that hosts would be resolved at Ubuntu either using broadcast or using wins. The same as Windows behaviour: DNS, NetBIOS lookup, WINS, etc. And if Dns resolving are failed, NetBIOS lookup or WINS is engaged. CperviceSpb
Reasonably Related Threads
- Fwd: Ubuntu, ping host by its NetBios name (Samba from sources) !
- NetBios at AD DC mode ?
- Samba4 4.5.0 acts as fileserver - there is not possible to login to !
- Error 'getpwuid(3000007) failed' is again. (Rowland penny)
- Samba4 4.2 building options and error during Samba4 4.2. building breaks it.