i86_64 CentOS-6.5 Samba-4.4.4-7 (sernet) samba-tool dns add 192.168.216.66 _msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 CNAME brdc-02.brockley.harte-lyne.ca -Uadministrator Password for [BROCKLEY\administrator]: ERROR(runtime): uncaught exception - (-1073610706, 'NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE') File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib64/python2.6/site-packages/samba/netcmd/dns.py", line 1067, in run 0, server, zone, name, add_rec_buf, None) I have checked the DNS on BRDC-01, the existing Win2K AD DC, and there were no entries for brdc-02 whatsoever (these have since been added manually to proceed past this issue).
(In reply to James B. Byrne from comment #0) Hey james, Cannot find issues with: samba-dc-4.10.6-0.fc30.x86_64 samba-4.10.6-0.fc30.x86_64 # samba-tool dns zonecreate _msdcs.brockley.harte-lyne.ca # samba-tool dns add sambadom.amitexample.com _msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 CNAME brdc-02.brockley.harte-lyne.ca -UAdministrator%<> Record added successfully # samba-tool dns query sambadom.amitexample.com _msdcs.brockley.harte-lyne.ca 4c012287-f5d1-4f54-b186-3c6d5bfc2c68 ALL -UAdministrator%<> Name=, Records=1, Children=0 CNAME: brdc-02.brockley.harte-lyne.ca. (flags=f0, serial=2, ttl=900)
also works for me, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE looks like some problem in your specific setup. Feel free to reopen, if this is reproducible in some given steps with an uptodate samba version still.