Bug 10176 - samba-tool dns add server address in _msdcs zone error
Summary: samba-tool dns add server address in _msdcs zone error
Status: REOPENED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.0.9
Hardware: x86 Windows 2003
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 15:08 UTC by Anthony
Modified: 2017-07-25 10:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony 2013-10-02 15:08:25 UTC
While joining an existing windows 2003 AD with samba 4.0.9 as additional DC following this how-to: https://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_domain_as_a_DC

I am unable to add cname record to the _msdcs zone of my windows DNS:

# samba-tool dns add IP-of-your-DNS _msdcs.samdom.example.com 737506d0-bfe6-40c8-815d-08c3dff7a67f CNAME DC2.samdom.example.com -Uadministrator

ERROR(runtime): uncaught exception - (9601, 'WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST')
  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 1053, in run
    0, server, zone, name, add_rec_buf, None)
Comment 1 Björn Jacke 2015-12-06 23:05:14 UTC
joining a windows ad dc to a samba ad or vice versa is not supported.
Comment 2 Andrew Bartlett 2015-12-06 23:40:09 UTC
(In reply to Björn Jacke from comment #1)
I'm not sure if the reporter is doing the right thing (windows should add the right records), and the limitations around sysvol are well known, but in general this should work and any bugs that prevent it are real issues we should resolve.
Comment 3 Anthony 2015-12-07 15:02:53 UTC
It is a long time since I try that but my domain is still here and my AD DC did not move.
Since 2013 I did not retry samba 4 but it will be pleasure to give you more info if needed.
For what I remember it was a problem regarding sambatool that fail to add the record into windows 2003 DNS even as administrator. I had check that Administrator have write right on all DNS zone but fail anyway.