How to get DNS return codes and TTLs
I'm doing research that requires me to use DNS recursive resolvers around the world. At a minimum from these recursive resolvers I need to know what return code the probe received from the recursive resolver as well as the TTL of the record from the same request. I haven't found a way to get both of these when doing DNS measurements with Ripe Atlas probes, is there a way to do this?
On Wed, Jun 08, 2022 at 06:16:30PM -0600, Dallan Adamson <dallanadamson@gmail.com> wrote a message of 39 lines which said:
I'm doing research that requires me to use DNS recursive resolvers around the world. At a minimum from these recursive resolvers I need to know what return code the probe received from the recursive resolver as well as the TTL of the record from the same request. I haven't found a way to get both of these when doing DNS measurements with Ripe Atlas probes, is there a way to do this?
Some DNS information is parsed by Atlas and returned in the JSON answer (such as the length of the various DNS sections) but, if you want all the DNS data, you'll have to parse yourself the DNS blob included in the JSON answer (field "abuf"). You can get inspiration from the source code of the official client, or from Blaeu's blaeu-resolve <https://framagit.org/bortzmeyer/blaeu>.
participants (2)
-
Dallan Adamson
-
Stephane Bortzmeyer