[Samba] [samba]How to config samba4 internal dns?

Sense Zeng opaperjam at gmail.com
Fri Aug 23 00:49:14 MDT 2013


> Does the replication between the DCs work? What is the output of
> # samba-tool drs showrepl
>
> # samba-tool drs showrepl output (ps: the linux samba4 server named GREEN;
the win2003 server named WATER):

Default-First-Site-Name\GREEN
DSA Options: 0x00000001
DSA object GUID: af3d331d-a8fe-4b15-9583-1b315001ed40
DSA invocationId: 9a2882f7-1685-4a2c-8cff-ae88e4115ee5

==== INBOUND NEIGHBORS
====
[36/186]

DC=DomainDnsZones,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Fri Aug 23 14:27:35 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Fri Aug 23 14:27:35 2013 HKT

DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Fri Aug 23 14:27:36 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Fri Aug 23 14:27:36 2013 HKT

CN=Schema,CN=Configuration,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Fri Aug 23 14:27:36 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Fri Aug 23 14:27:36 2013 HKT

DC=ForestDnsZones,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Fri Aug 23 14:27:35 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Fri Aug 23 14:27:35 2013 HKT

CN=Configuration,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Fri Aug 23 14:27:36 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Fri Aug 23 14:27:36 2013 HKT

 ==== OUTBOUND NEIGHBORS ====

DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Thu Aug 22 17:46:24 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Thu Aug 22 17:46:24 2013 HKT

CN=Schema,CN=Configuration,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Thu Aug 22 17:46:24 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Thu Aug 22 17:46:24 2013 HKT

CN=Configuration,DC=dotest,DC=com
        Default-First-Site-Name\WATER via RPC
                DSA object GUID: 880d3cbe-93a7-4e9d-a286-62b54a73a6ba
                Last attempt @ Thu Aug 22 17:46:24 2013 HKT was successful
                0 consecutive failure(s).
                Last success @ Thu Aug 22 17:46:24 2013 HKT

==== KCC CONNECTION OBJECTS ====

Connection --
        Connection name: 6912f847-88cb-44ac-a5d6-2a8114e8a993
        Enabled        : TRUE
        Server DNS name : water.dotest.com
        Server DN name  : CN=NTDS
Settings,CN=WATER,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dotest,
DC=com
                TransportType: RPC
                options: 0x00000001
Warning: No NC replicated for Connection!



> Are you sure, that the internal DNS was used during joining?
> # samba-tool domain join ... --dns-backend=SAMBA_INTERNAL
>
> I haven't use --dns-backend to join the domain. I thought SAMBA_INTERNAL
is the default option.

>
>
>  But the other way, follow command would just ok:
>>
>>      samba-tool dns query win2003_srv_ip dotest.com <http://dotest.com>
>> testhost A
>>
>
> Here you are asking the DNS on the windows host to resolve the query. Not
> your samba DC and it's DNS
>
>
>
>  OR
>>
>>      host -t A testhost.dotest.com <http://testhost.dotest.com>
>> samba_srv_ip
>>
>
> Could it be possible that the output of this command is ok, because you
> specified other DNS servers in your /etc/resolv.conf, than the one on which
> you setup the additional DC? Then the reply was from the other host.
>
> I can surer the reply is from the samba4 server.

>
>
>
> Regards,
> Marc
>

Thanks a lot.


More information about the samba mailing list