Author Topic: Zentyal 6.1 share not accessible through DNS/Netbios alias.  (Read 1436 times)

Kevinsky86

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +4/-0
    • View Profile
I had some mild headaches around getting Zentyal shares accessible via alternative DNS names so I thought i'd write up a quick how to for anybody else running into this.

Situation beeing, i've got two zentyal boxes, one is a DC/authentication server, another one is supposed to just handle file shares but talk to DC for authentication and whatnot.
It's worth noting at this point Zentyal does not handle DNS requests outside of what is in it's own domain. (my firewall does DNS and just forwards all domain related requests to the zentyal DC)

Upon setting up a share i noticed //servername/share would work fine but replacing server name with anything else spawns an error upon wanting to access a share directory. (something about incorrect parameter)
This box will be replacing an older system with a different name so for legacy purposes I really want it to also work under alternative names.

So samba wants to explicitly know it's aliases, though the "netbios aliases" setting.
This needs to be defined in the samba configuration file.
If you google how to do this on a Zentyal box (as you can't just edit a config file and expect this to survive updates changes or even reboots) you will quickly find a "configuration files" page (https://wiki.zentyal.org/wiki/Configuration_Files) implying this is where you put your custom appendages.
This didn't do anything for me. (what does this do?)

I had to create a "stub" of the actual smb configuration file as described here under section stub: https://doc.zentyal.org/en/appendix-c.html.
So basicly

sudo mkdir /etc/zentyal/stubs
sudo mkdir /etc/zentyal/stubs/samba
sudo cp /usr/share/zentyal/stubs/samba/smb.conf.mas /etc/zentyal/stubs/samba
nano /etc/zentyal/stubs/samba/smb.conf.mas

And add "netbios aliases = space seperated names you want to use" under the "netbios name" value which should contain the name you've origionally given it.

Save this, restart, and bob is your uncle.
« Last Edit: June 03, 2020, 06:08:53 pm by Kevinsky86 »

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Zentyal 6.1 share not accessible through DNS/Netbios alias.
« Reply #1 on: June 08, 2020, 12:56:37 pm »
 :)

It's interesting... Could be useful during the data migrations processes.

Thank you!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,