This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

NetBIOS name & mdsnsresponder.conf (bug?)

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
sfranzis
Starter
Starter
Posts: 74
Joined: 27 Jun 2012 10:22
Contact:
Status: Offline

NetBIOS name & mdsnsresponder.conf (bug?)

Post by sfranzis »

Hi *,

CIFS/SMB registers his service only with the hostname in the file mdnsresponder.conf.

Example
Hostname: nas4free
NetBIOS name on config page CIFS/SMB: nas4freeSMB

Entry in mdnsresponder.conf:
nas4free
_smb._tcp. local.
445

I think this should be:
nas4freeSMB
_smb._tcp. local.
445

Stefan
Supermicro A2SDi-4C-HLN4F 32GB ECCRAM, 4x6TB WD Red, Samsung 970 EVO Plus
Supermicro X7SPA-H 4GB RAM, 4x2TB Samsung Spinpoint F3, Crucial RealSSD C300

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: NetBIOS name & mdsnsresponder.conf (bug?)

Post by daoyama »

sfranzis wrote: CIFS/SMB registers his service only with the hostname in the file mdnsresponder.conf.
This is DNS name, not NetBIOS name.
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

sfranzis
Starter
Starter
Posts: 74
Joined: 27 Jun 2012 10:22
Contact:
Status: Offline

Re: NetBIOS name & mdsnsresponder.conf (bug?)

Post by sfranzis »

Hello Daoyama,
daoyama wrote: This is DNS name, not NetBIOS name.
why then do you use the /afp/afpname in mdnsresponder.conf in case of AFP?

I changed mdnsresponder on my nas to use the NetBIOS name for SMB and with this I can work around a very nasty issue in OS-X el Capitan:
viewtopic.php?f=26&t=9674

My change in /etc/rc.d/mdnsresponder is:

Code: Select all

                -i "count(//samba/enable) > 0" \
-                        -v "//system/hostname" -n \
+                       -v "//samba/netbiosname" -n \
                        -o "_smb._tcp. ${_domain}" -n \
                        -o "445" -n \
                        -n \
You can still use the dns name in your CIFS configuration, but you are free to choose another one.
If you need more details feel free to ask :-)

Stefan
Supermicro A2SDi-4C-HLN4F 32GB ECCRAM, 4x6TB WD Red, Samsung 970 EVO Plus
Supermicro X7SPA-H 4GB RAM, 4x2TB Samsung Spinpoint F3, Crucial RealSSD C300

Chucko
Starter
Starter
Posts: 27
Joined: 18 Jan 2016 09:48
Location: Silicon Valley, CA, USA
Status: Offline

Re: NetBIOS name & mdsnsresponder.conf (bug?)

Post by Chucko »

I have run across this too. I would prefer to see the NetBIOS name advertised.

Post Reply

Return to “CIFS/SMB (Samba)”