How to join Active Directory with a different hostname?

JTY

Cadet
Joined
Mar 3, 2023
Messages
2
We have a very large AD environment, with the example domain "ad.largeorg.edu". And, servers are assigned hostnames based on their department or workgroup, for example "fileserver.mydept.largeorg.edu". When a machine is joined to AD, we're required to have the join set the AD attribute "dnsHostname" to the machine's assigned name. On a normal Linux system running Samba, we'd use the command "net ads join -U AD\\my_account --no-dns-updates dnshostname=fileserver.mydept.largeorg.edu". My question is, how would I do the same thing with TrueNAS SCALE? I looked through the UI, but didn't see an option to override the "dnshostname", but perhaps I'm missing it.

Thanks,
John
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Hello @JTY

While the Linux hostname is set from Network -> Global Configuration, you're likely looking for the "NetBIOS Name" under the SMB service configuration.

You can get there from System Settings -> Services and then choosing the pencil (Edit) icon beside SMB - from there, set the name and domain.

Cheers!
 

JTY

Cadet
Joined
Mar 3, 2023
Messages
2
I do have the NetBIOS Name set to "fileserver". The problem is with the AD attribute "dnshostname" which contains the machine's fully qualified name. TrueNAS tries to set that attribute to "fileserver.ad.largeorg.edu", but I need it to be "fileserver.mydept.largeorg.edu".
 
Top