[Samba] How to get a list of all PTR records?

Patrick Goetz pgoetz at math.utexas.edu
Tue Jan 4 14:10:32 UTC 2022


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
> 



More information about the samba mailing list