[Samba] samba4.2 AD DC and Sites

Jacky Chan jacky at jesstech.com
Tue Jun 9 22:44:24 MDT 2015


Hi,

Existing Samba setup has no sites, two servers (one AD and one DC) are 
all in Default-First-Site-Name site.

Inter-Site Transport:        IP
Site Link:                       DEFAULTIPSITELINK

Sites:
Default-First-Site-Name (already existing):
    Domain Controller(s):         AD, HKDC
    Subnets:                          192.168.1.0/24

  SZOffice (new created):
    Domain Controller:            SZDC1, SZDC2
    Subnet:                       192.168.0.0/24

Create the SZOffice site based on the wiki: 
https://wiki.samba.org/index.php/Active_Directory_Sites,
Assigned the site link and joined the SZDC1 to the site

The command (ran on SZDC1):
samba-tool domain join lan-domain.xxxxxx.com DC -Uadministrator 
--realm=lan-domain.xxxxxx.com --dns-backend=SAMBA_INTERNAL --site=SZOffice

ran successfully but the site-related DNS entries did not create.

I tried to run :
samba_dnsupdate --verbose
it returned: "No DNS updates needed"

In Windows' RSAT DNS admin, I only see record like that:

_msdcs.lan-domain.xxxxxx.com
     dc
         _sites
             Default-First-Site-Name
                 _tcp
                     _kerberos
                     _ldap


Cannot find records of SZOffice under 
_sites.dc._msdcs.lan-domain.xxxxxx.com.

Try to check the DNS in linux

host -t SRV _ldap._tcp.SZOffice._sites.dc._msdcs.lan-domain.xxxxxx.com
host -t SRV _kerberos._tcp.SZOffice._sites.dc._msdcs.lan-domain.xxxxxx.com

return not found: 3(NXDOMAIN)

How can i fix this, do i need to add the site DNS manually?

Thanks



More information about the samba mailing list