Hello, I'm trying to use this command to convert my old servers dns records to static but I'm running into a few problems: The following command does not work : *samba-tool dns zoneoptions --mark-old-records-static="2021-03-30"Usage: samba-tool dns zoneoptions <server> <zone> [options]* I also try this : *samba-tool dns zoneoptions server1 example.com <http://example.com> --mark-old-records-static=2021-03-30ERROR(ldb): uncaught exception - LDAP error 32 LDAP_NO_SUCH_OBJECT - <acl_read: Error retrieving instanceType for base. at ../../source4/dsdb/samdb/ldb_modules/acl_read.c:967> <> File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 546, in run self.mark_old_records_static(server, zone, File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 586, in mark_old_records_static samdb, nodes = self._get_dns_nodes(server, zone_name) File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 571, in _get_dns_nodes nodes = samdb.search(base=zone_dn,* has anyone ever successfully executed this command? Thanks Samuel
Wilfred Gander
2023-Nov-08 15:40 UTC
[Samba] samba-tool dns zoneoptions --mark-old-records-static
Hello, I do it like this: samba-tool dns zoneoptions dc_name domain_name --mark-records-static-regex='machine-name' -U Administrator Best regards, Wilfred On Wed, 8 Nov 2023 at 16:19, Sam R via samba <samba at lists.samba.org> wrote:> Hello, > > I'm trying to use this command to convert my old servers dns records to > static but I'm running into a few problems: > > The following command does not work : > > *samba-tool dns zoneoptions --mark-old-records-static="2021-03-30"Usage: > samba-tool dns zoneoptions <server> <zone> [options]* > > I also try this : > > *samba-tool dns zoneoptions server1 example.com <http://example.com> > --mark-old-records-static=2021-03-30ERROR(ldb): uncaught exception - LDAP > error 32 LDAP_NO_SUCH_OBJECT - <acl_read: Error retrieving instanceType > for base. at ../../source4/dsdb/samdb/ldb_modules/acl_read.c:967> <> File > "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in > _run return self.run(*args, **kwargs) File > "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 546, in run > self.mark_old_records_static(server, zone, File > "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 586, in > mark_old_records_static samdb, nodes = self._get_dns_nodes(server, > zone_name) File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line > 571, in _get_dns_nodes nodes = samdb.search(base=zone_dn,* > > has anyone ever successfully executed this command? > > Thanks > > Samuel > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Rowland Penny
2023-Nov-08 15:49 UTC
[Samba] samba-tool dns zoneoptions --mark-old-records-static
On Wed, 8 Nov 2023 16:18:12 +0100 Sam R via samba <samba at lists.samba.org> wrote:> Hello, > > I'm trying to use this command to convert my old servers dns records > to static but I'm running into a few problems: > > The following command does not work : > > *samba-tool dns zoneoptions > --mark-old-records-static="2021-03-30"Usage: samba-tool dns > zoneoptions <server> <zone> [options]* > > I also try this : > > > > > > > > > > *samba-tool dns zoneoptions server1 example.com <http://example.com> > --mark-old-records-static=2021-03-30ERROR(ldb): uncaught exception - > LDAP error 32 LDAP_NO_SUCH_OBJECT - <acl_read: Error retrieving > instanceType for base. at > ../../source4/dsdb/samdb/ldb_modules/acl_read.c:967> <> File > "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, > in _run return self.run(*args, **kwargs) File > "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 546, in > run self.mark_old_records_static(server, zone, File > "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 586, in > mark_old_records_static samdb, nodes = self._get_dns_nodes(server, > zone_name) File > "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 571, in > _get_dns_nodes nodes = samdb.search(base=zone_dn,* > > has anyone ever successfully executed this command? > > Thanks > > SamuelIs 'server1' one of your DCs and is 'example.com' a valid forward zone ? Rowland
Apparently Analagous Threads
- samba-tool dns zoneoptions --mark-old-records-static
- samba-tool dns zoneoptions --mark-old-records-static
- samba-tool dns zoneoptions --mark-old-records-static
- samba-tool dns zoneoptions --mark-old-records-static
- samba-tool dns zoneoptions --mark-old-records-static