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

2013-09-30 Thread Sense Zeng
I tryed bind as backend. But the problem was still the same: can't use
samba-tool dns to query. There were same errors in log.samba:
...
dnsserver: Failed to find DNS Zones in
CN=MicrosoftDNS,DC=ForestDnsZones,DC=dotest,DC=com
...
In the end I finded the solution. I config the dns zone in win2003. Change
the setting of zone replicated from To all domain controllers in the
Active Directory domain dotest.com to To all DNS servers in the Active
Directory forest dotest.com. Now it seems samba-tool dns is ok with samba
internal dns.


2013/8/31 Sense Zeng opaper...@gmail.com

 I can't figure out how to fix the internal dns problem. Trying bind.



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-31 Thread Sense Zeng
I can't figure out how to fix the internal dns problem. Trying bind.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-23 Thread Sense Zeng
 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: 0x0001
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: 0x0001
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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-22 Thread Sense Zeng
Thanks for the reply. I think there are something wrong in my dns record

Samba version: 4.0.9 (just upgrade)
domain name: dotest.com

There are two DC in the domain:
1. win2003. It's created dotest.com and with dns server too;
2. linux with samba4. It join the domain and being a DC.

I can't use samba-tool to query any thing in the internal dns, like:

samba-tool dns query samba_ip dotest.com testhost A

It will print error message:

ERROR(runtime): uncaught exception - (9717, 'WERR_DNS_ERROR_DS_UNAVAILABLE')
  File
/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py,
line 175, in _run
return self.run(*args, **kwargs)
  File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py,
line 974, in run
None, record_type, select_flags, None, None)

And in /usr/local/samba/var/log.samba will see the error (There are no
other err in the log file):

[2013/08/22 17:50:24.165606,  0]
../source4/rpc_server/dnsserver/dnsdb.c:112(dnsserver_db_enumerate_zones)
  dnsserver: Failed to find DNS Zones in
CN=MicrosoftDNS,DC=ForestDnsZones,DC=dotest,DC=com

But the other way, follow command would just ok:

samba-tool dns query win2003_srv_ip dotest.com testhost A

OR

host -t A testhost.dotest.com samba_srv_ip

What should I do?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-22 Thread Marc Muehlfeld

Hello,

Am 22.08.2013 12:30, schrieb Sense Zeng:

There are two DC in the domain:
1. win2003. It's created dotest.com http://dotest.com and with dns
server too;
2. linux with samba4. It join the domain and being a DC.

I can't use samba-tool to query any thing in the internal dns, like:

 samba-tool dns query samba_ip dotest.com http://dotest.com testhost A

It will print error message:

ERROR(runtime): uncaught exception - (9717, 'WERR_DNS_ERROR_DS_UNAVAILABLE')
   File
/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py,
line 175, in _run
 return self.run(*args, **kwargs)
   File
/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py, line
974, in run
 None, record_type, select_flags, None, None)

And in /usr/local/samba/var/log.samba will see the error (There are no
other err in the log file):

[2013/08/22 17:50:24.165606,  0]
../source4/rpc_server/dnsserver/dnsdb.c:112(dnsserver_db_enumerate_zones)
   dnsserver: Failed to find DNS Zones in
CN=MicrosoftDNS,DC=ForestDnsZones,DC=dotest,DC=com


Does the replication between the DCs work? What is the output of
# samba-tool drs showrepl


Are you sure, that the internal DNS was used during joining?
# samba-tool domain join ... --dns-backend=SAMBA_INTERNAL







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.





Regards,
Marc
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-21 Thread Sense Zeng
I'm new for samba4 and I'm trying to test samba4(Version 4.0.8) with
internal dns.
Did internal dns can config? Could I just manual add some host(A) in?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-21 Thread steve
On Wed, 2013-08-21 at 14:45 +0800, Sense Zeng wrote:
 I'm new for samba4 and I'm trying to test samba4(Version 4.0.8) with
 internal dns.
 Did internal dns can config? Could I just manual add some host(A) in?

Hi
Yes, no problem:

samba-tool dns add server zone name A data

hth
Steve


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


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

2013-08-21 Thread Marc Muehlfeld

Hello,

Am 21.08.2013 08:45, schrieb Sense Zeng:

I'm new for samba4 and I'm trying to test samba4(Version 4.0.8) with
internal dns.



Did internal dns can config? Could I just manual add some host(A) in?




What do you mean by configure internal DNS? How to setup? The internal 
DNS is default when you do the provisioning/upgrading. You only have to 
setup an forwarder (DNS to forward queries to, for foreign zones). See 
http://wiki.samba.org/index.php/DNS#Configuration



Or do you simply want to know how to work with DNS (add/remove/change 
records/zones, etc.)? Then have a look at the HowTo I wrote some time 
ago: http://wiki.samba.org/index.php/DNS_Administration



If you ment something else, please be more specific.


Regards,
Marc

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba