NETBios names on jails

Joined
Feb 9, 2019
Messages
5
First off lt me say I'm no expert on Linux and only a limited understanding of networking and very new to FreeNAS ....

Essentially I run everything at home on a basic network, telco modem router and then an unmanaged switch.
I have no DNS server or LMhost files nor do I want them so I rely on NETBios to give friendly names to devices.
This works for most things, cameras, PCs, even my FreeNAS box, etc.

I have Nextcloud in a jail on the same subnet and it appears to have valid hostname (given my limited knowledge of FreeNSB) but it cannot be seen by its name nor can it see other devices by name.

If I ping "nextcloud" on the jail it returns 127.0.0.1 so it does recognise it has a name..
I installed samba as I think this includes netbios ( pkg install samba48) but still nothing and I'm not sure about configuring it.

Default Gateway : 192.168.0.255/24 (n/a)
NAS box : 192.168.0.100/24 (NAS)
NextCloud : 192.168.0.110/24 (NextCloud)
Windows 10 PC : DHCP 192.168.0.18/24 (Laptop01)

PC can ping everything by IP. Can ping everything by name except nextcloud.
Similarly, nextcloud can ping everything by IP but nothing not name.

Any thoughts on what I am missing please?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Joined
Feb 9, 2019
Messages
5
For anyone else who has a similar issue I've now resolved this by doing the following on each jail where I need netbios :

install package
pkg install samba48

create this file :
/usr/local/etc/smb4.conf

with this content :
[global]
workgroup = workgroup
realm = workgroup.local
netbios name = nextcloud

then run this :
sysrc samba_server_enable=YES
service samba_server start

previously I had missed the smb4.conf file assuming it already had this info given the hostname was showing elsewhere.
 

bignellrp

Dabbler
Joined
Mar 12, 2020
Messages
18
If you havent got that many machines then i just use a host file and just copy the host file onto each new machine or jail. Its a lot less cpu/memory intensive than running samba in every jail just for netbios but i do like your idea for ease of use.
 
Top