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

Andrew Bartlett abartlet at samba.org
Tue Dec 14 02:02:28 UTC 2021


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








More information about the samba mailing list