On Wed, 20 Nov 2024 at 14:47, Andy Smith via BitFolk Users
<users(a)mailman.bitfolk.com> wrote:
The other day I saw one of BitFolk's IP addresses in a log file and
wondered which host that was, so I did a reverse lookup and got:
2001-ba8-1f1-f284-0-0-0-2.autov6rev.bitfolk.space
which was useless to me.
It's quick to look this up and fix it of course, but I wondered how many
other such addresses I had forgotten to take care of the reverse DNS
for.
In order to answer that question, automatically and in bulk, I wrote
this tool:
https://github.com/grifferz/ptrcheck-rs
I finally got round to trying this out, but I'm obviously doing something wrong:
./ptrcheck -v --server 127.0.0.1 --zone caboose.org.uk
Connecting to 127.0.0.1 port 53 for AXFR of zone caboose.org.uk
Zone contains 1 record
Found 0 unique address (A/AAAA) records
If I use dig I can see that there are definitely more than zero A/AAAA
records in that zone:
dig -t axfr caboose.org.uk @127.0.0.1
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> -t axfr
caboose.org.uk @127.0.0.1
;; global options: +cmd
...
caboose.org.uk. 300 IN A 85.119.82.49
caboose.org.uk. 300 IN AAAA 2001:ba8:1f1:f0e9::2
...
mail.caboose.org.uk. 300 IN A 85.119.82.49
mail.caboose.org.uk. 300 IN AAAA 2001:ba8:1f1:f0e9::2
oelph.caboose.org.uk. 3600 IN A 85.119.82.49
oelph.caboose.org.uk. 3600 IN AAAA 2001:ba8:1f1:f0e9::2
...
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (TCP)
;; WHEN: Mon Nov 25 18:47:42 GMT 2024
;; XFR size: 23 records (messages 3, bytes 1342)
Any idea what it is that I'm doing wrong?
/Kevin