I asked this in another thread, but is there any way to get a list of all the PTR records managed by the Samba internal DNS server? I can get them one at a time like this: root at data2:/home# samba-tool dns query samba-dc 90.18.172.in-addr.arpa 121 PTR -U Administrator Password for [EA\Administrator]: Name=, Records=1, Children=0 PTR: EA121.ea.earchives.org (flags=f0, serial=4, ttl=900) But would really like to list them all to see if there's one I forgot to add by hand.
On Mon, 2021-12-13 at 19:49 -0600, Patrick Goetz via samba wrote:> I asked this in another thread, but is there any way to get a list > of > all the PTR records managed by the Samba internal DNS server? > > I can get them one at a time like this: > > root at data2:/home# samba-tool dns query samba-dc 90.18.172.in- > addr.arpa > 121 PTR -U Administrator > Password for [EA\Administrator]: > Name=, Records=1, Children=0 > PTR: EA121.ea.earchives.org (flags=f0, serial=4, ttl=900) > > > But would really like to list them all to see if there's one I forgot > to > add by hand.Everything is an LDAP object of objectclass dnsNode in the DNS partitions, you can just look at them there. Andrew Bartlett -- Andrew Bartlett (he/him) https://samba.org/~abartlet/ Samba Team Member (since 2001) https://samba.org Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba Samba Development and Support, Catalyst IT - Expert Open Source Solutions
Coming back to this after the holidays .... > Everything is an LDAP object of objectclass dnsNode in the DNS > partitions, you can just look at them there. Is there a place where I can look at the LDB/LDAP schemas? I need more information in order to construct an appropriate search using, presumably ldbsearch. An example of such a search would be even better. I'm having trouble finding any examples of using ldbsearch online. On 12/13/21 20:02, Andrew Bartlett wrote:> On Mon, 2021-12-13 at 19:49 -0600, Patrick Goetz via samba wrote: >> I asked this in another thread, but is there any way to get a list >> of >> all the PTR records managed by the Samba internal DNS server? >> >> I can get them one at a time like this: >> >> root at data2:/home# samba-tool dns query samba-dc 90.18.172.in- >> addr.arpa >> 121 PTR -U Administrator >> Password for [EA\Administrator]: >> Name=, Records=1, Children=0 >> PTR: EA121.ea.earchives.org (flags=f0, serial=4, ttl=900) >> >> >> But would really like to list them all to see if there's one I forgot >> to >> add by hand. > > Everything is an LDAP object of objectclass dnsNode in the DNS > partitions, you can just look at them there. > > Andrew Bartlett >