[Samba] What is wrong in my Samba setup?

Jason Long hack3rcon at yahoo.com
Thu Apr 29 12:13:26 UTC 2021

I use Fedora Server and installed the last version of Samba from the source code on it. My "/etc/hosts" file contents is:

# cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 mydc.mydomain.z mydc

And my host name is "mydc":

# hostname

I used below command to configure Samba as a DC:

# samba-tool domain provision --use-rfc2307 --interactive --option="interfaces=lo enp0s17" --option="bind interfaces only=yes"

And the output is:

The contents of the "/etc/krb5.conf" file is:

    default_realm = MYDOMAIN.Z
    dns_lookup_realm = false
    dns_lookup_kdc = true

    default_domain = mydomain.z

    mydc = MYDOMAIN.Z

The Samba service is running without any error.

I have some questions:

1- What is realm?

2- When I want to verifying DNS, I got below error:

# host -t SRV _ldap._tcp.mydomain.mydomain.z.
Host _ldap._tcp.mydomain.mydomain.z. not found: 3(NXDOMAIN)

# host -t SRV _kerberos._tcp.mydomain.mydomain.z.
Host _kerberos._tcp.mydomain.mydomain.z. not found: 3(NXDOMAIN)

# host -t A mydc._tcp.mydomain.mydomain.z.
Host mydc._tcp.mydomain.mydomain.z. not found: 3(NXDOMAIN)

Which part of my configuration is wrong?

Thank you.

More information about the samba mailing list