#!/bin/sh
echo == Verify RRset absence
-cleandig ptr1.test.dyndns PTR
+cleandig ptr1.test.dyndns PTR | grep -v SOA
echo
echo == Add PTR
echo
echo == Verify PTR presence
-cleandig ptr1.test.dyndns PTR
+cleandig ptr1.test.dyndns PTR | grep -v SOA
echo
echo == Add the PTR again
echo
echo == Verify RRset absence
-cleandig ptr1.test.dyndns PTR
+cleandig ptr1.test.dyndns PTR | grep -v SOA
== Verify RRset absence
-1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. 2019082709 28800 7200 604800 86400
Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ptr1.test.dyndns.', qtype=PTR
== Verify RRset absence
-1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. 2019082711 28800 7200 604800 86400
Rcode: 3 (Non-Existent domain), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ptr1.test.dyndns.', qtype=PTR