[Samba] Join linux-client trixi not working no dns update
Stefan Kania
stefan at kania-online.de
Tue Nov 4 08:28:50 UTC 2025
I found in the release note of version 4.21
--------------
New DNS hostname config option
------------------------------
To get `net ads dns register` working correctly running manually or during a
domain join a special entry in /etc/hosts was required. This not really
documented and thus the DNS registration mostly didn't work. With the new option
the default is [netbios name].[realm] which should be correct in the majority of
use cases.
--------------
so we added:
---------
dns hostname = client01.example.net
---------
to smb.conf
still no change :-(
Am 04.11.25 um 09:10 schrieb Stefan Kania via samba:
> That's what we did now:
>
> leave the entry in /etc/hosts
>
> then we did:
> ------------
> root at dc01:~# kinit administrator
> administrator at EXAMPLE.NET's Password:
>
> root at dc01:~# nsupdate -g
>> server dc01.example.net
>> update add client01.example.net 86400 A 192.168.56.33
>> send
>> quit
> ------------
> Now we have the client entry in DNS. But this is just a work around and no solution. I will write a bugreport. BTW the same happend with 4.21, 4.22, we now will try it it 4.23
>
>
>
> Am 04.11.25 um 07:46 schrieb Stefan Kania via samba:
>>
>>
>> Am 03.11.25 um 23:53 schrieb Markus Gschwendt via samba:
>>> emove your client entry from the hosts file for now.
>>> You could try to insert the DNS entry with nsupdate -g. That did work
>>> for me too.
>> I removed the client from AD with "samba-tool computer delete client01", then I removed the entry line with the clients IP-address from /etc/hosts. And tried it again. Same shit. I never used "nsupdate" until now which parameters do I have to give to update the DNS-entry? I usually use "net ads dns register" I also think it's a bug, or as it happens more often, bad or non existing documentation. I think I will write a bugreport
>>
>>
>>
>
>
>
>
>
--
Stefan Kania
Landweg 13
25693 St. Michaelisdonn
More information about the samba
mailing list