[Samba] I can't join my Linux client to my Samba DC.

Rowland penny rpenny at samba.org
Tue Jun 1 14:59:28 UTC 2021

On 01/06/2021 15:36, Jason Long wrote:
> Thank you.
> My Samba DC has a DHCP server too.

I do hope your DC has a fixed IP.

> My "/etc/hosts" file contents is:
> # cat /etc/hosts
>   localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Can someone tell me where 'localdomain' actually came from ? 
is the ipaddress for the local host or 'lo', hence 'localhost', as far 
as I am aware, there is no such thing as 'localdomain'

> And I modified "/etc/resolv.conf" file as below:
> # cat /etc/resolv.conf
> search mydomain.z
> nameserver
> And edited "smb.conf" file as below:
> [global]
>     workgroup = MYDOMAIN
>     security = ADS
> # realm = MYDC.MYDOMAIN.Z
>     realm = MYDOMAIN.Z
> And tried to join my Linux client to my Samba DC, but I got below error:
> # net ads join -U administrator
> Enter administrator's password:
> Using short domain name -- MYDOMAIN
> Joined 'CLIENT' to dns domain 'mydomain.z'

Your client is now joined to the domain.

> No DNS domain configured for client. Unable to perform DNS Update.

But it hasn't updated its dns record in AD, not that this matters if 
your DHCP server is updating the records in AD.


More information about the samba mailing list