-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Stephane,

Your script is picking up the wrong parts as RRs.  The other lines are
part of the message cache dump.

Look for these marker lines through the cachedump (perhaps with
csplit(1)?)

START_RRSET_CACHE
.. RRs
END_RRSET_CACHE
START_MSG_CACHE
.... not RRs!!
END_MSG_CACHE
EOF

Best regards, Wouter

On 16/09/16 17:24, Stephane Bortzmeyer via Unbound-users wrote:
> I run 'unbound-control dump_cache' and I get, among other things:
> 
> 70.168.69.4.in-addr.arpa.     86252   IN      PTR
> ae-2-70.edge3.Paris1.Level3.net.
> 
> msg 108.7.134.192.in-addr.arpa. IN PTR 32896 1 86250 3 1 1 0 
> 108.7.134.192.in-addr.arpa. IN PTR 0
> 
> Why two different formats for these two IP addresses (and the
> second one seems difficult to parse...)? Using dig gives reasonable
> results:
> 
> % dig PTR 108.7.134.192.in-addr.arpa.
> 
> ; <<>> DiG 9.10.3-P4-Debian <<>> PTR 108.7.134.192.in-addr.arpa. ;;
> global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY,
> status: NOERROR, id: 27699 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1,
> AUTHORITY: 3, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags: do; udp: 4096 ;;
> QUESTION SECTION: ;108.7.134.192.in-addr.arpa. IN PTR
> 
> ;; ANSWER SECTION: 108.7.134.192.in-addr.arpa. 172498 IN PTR
> mx80-1-sqy.interco.nic.fr.
> 
> ;; AUTHORITY SECTION: 7.134.192.in-addr.arpa. 172498 IN NS
> ns1.nic.fr. 7.134.192.in-addr.arpa.   172498 IN NS ns2.nic.fr. 
> 7.134.192.in-addr.arpa.       172498 IN NS ns3.nic.fr.
> 
> ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN:
> Fri Sep 16 17:23:25 CEST 2016 ;; MSG SIZE  rcvd: 148
> 
> dig PTR 70.168.69.4.in-addr.arpa.
> 
> ; <<>> DiG 9.10.3-P4-Debian <<>> PTR 70.168.69.4.in-addr.arpa. ;;
> global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY,
> status: NOERROR, id: 22322 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1,
> AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags: do; udp: 4096 ;;
> QUESTION SECTION: ;70.168.69.4.in-addr.arpa. IN PTR
> 
> ;; ANSWER SECTION: 70.168.69.4.in-addr.arpa. 86089    IN PTR
> ae-2-70.edge3.Paris1.Level3.net.
> 
> ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN:
> Fri Sep 16 17:23:36 CEST 2016 ;; MSG SIZE  rcvd: 98
> 
> Version 1.5.9 linked libs: libevent 2.0.21-stable (it uses epoll),
> OpenSSL 1.0.2h  3 May 2016 linked modules: dns64 python validator
> iterator
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJX3CT/AAoJEJ9vHC1+BF+NCJ4QAKyhhHI9yZlZWuAdvNUg4kvR
pVqvjeN9NHnMyOHHzmnJ+4RwI+LPwCsd7LsC7rqy+/oDnFsPQsFV8u4vQKEExeb7
ZLbaXvoGzr7753qNXnWMn0dwfrrbPOeeeol6kyHejF9qWzzpdU4NzbVkI/H2yYwS
YxgD3jVfoO+8gU0z8CboiUPShQyn5JXhVvvdrV5iBAFH/zXr3NG2DMuNQy7HxaR9
MQmhjkgdOHOrScI4dzMqHqqPCIW/T3wc8vuTwNyDaXABQ5sONYavzX2H84+gQ2qZ
ADX5ekLCLf/I4AB+J6pad6N7xqfUC7FszVOX14wkVvObV1aUFgO7wpbGGUk5DWzA
9SlzVaEoSOf4o1CnBpJCzZR3F90ShbyhHSJeoBBgeJZK1EEaYCggQanMOqLTf+Zs
YpwOqgGlCj0N9ADDeMJ58kbNZ2e7Tn+KvuD9y/F/bLuGOIDP1XTXJMOFXnEzyw2z
FP51K+BqJZRkL8bKpvAxvB/dtFNVZ91fh9AUvfHA9foQcd0ggA/HqwTKJAoFpKQZ
F05hjkb+0lheL+3gFUnS/cnheummsZIQwaP8cPwtErnf8gFjJfcK5YeuYzt/6I1p
k5mEmpua9i63N993k9dOyal1PQYaQNwBs5QRgaMfPvSE+gUBqPhPAnS9L/tSjuIJ
QRWhS/rmps6d55977aJ+
=HK1S
-----END PGP SIGNATURE-----

Reply via email to