Clarification for JSON output

This commit is contained in:
Alexandre Dulaunoy 2014-02-02 08:09:48 +01:00
parent 43ae01e56e
commit 1f63e5e847

View file

@ -377,28 +377,29 @@ CR = %x0D
<!-- &I-D.draft-bortzmeyer-dnsop-dns-privacy; --> <!-- &I-D.draft-bortzmeyer-dnsop-dns-privacy; -->
</references> </references>
<section anchor="app-additional" title="Examples"> <section anchor="app-additional" title="Examples">
<t>The JSON output are represented on multiple lines for readability but each JSON object should on a single line.</t>
<t>If you query a passive DNS for the rrname www.ietf.org, the passive dns common output format can be:</t> <t>If you query a passive DNS for the rrname www.ietf.org, the passive dns common output format can be:</t>
<figure><artwork> <figure><artwork>
<![CDATA[ <![CDATA[
{"count": 102, "time_first": 1298412391, "rrtype": "AAAA",\ {"count": 102, "time_first": 1298412391, "rrtype": "AAAA",
"rrname": "www.ietf.org", "rdata": "2001:1890:1112:1::20",\ "rrname": "www.ietf.org", "rdata": "2001:1890:1112:1::20",
"time_last": 1302506851} "time_last": 1302506851}
{"count": 59, "time_first": 1384865833, "rrtype": "A",\ {"count": 59, "time_first": 1384865833, "rrtype": "A",
"rrname": "www.ietf.org", "rdata": "4.31.198.44",\ "rrname": "www.ietf.org", "rdata": "4.31.198.44",
"time_last": 1389022219} "time_last": 1389022219}
]]> ]]>
</artwork></figure> </artwork></figure>
<t>If you query a passive DNS for the rrname ietf.org, the passive dns common output format can be:</t> <t>If you query a passive DNS for the rrname ietf.org, the passive dns common output format can be:</t>
<figure><artwork> <figure><artwork>
<![CDATA[ <![CDATA[
{"count": 109877, "time_first": 1298398002, "rrtype": "NS",\ {"count": 109877, "time_first": 1298398002, "rrtype": "NS",
"rrname": "ietf.org", "rdata": "ns1.yyz1.afilias-nst.info",\ "rrname": "ietf.org", "rdata": "ns1.yyz1.afilias-nst.info",
"time_last": 1389095375} "time_last": 1389095375}
{"count": 4, "time_first": 1298495035, "rrtype": "A",\ {"count": 4, "time_first": 1298495035, "rrtype": "A",
"rrname": "ietf.org", "rdata": "64.170.98.32",\ "rrname": "ietf.org", "rdata": "64.170.98.32",
"time_last": 1298495035} "time_last": 1298495035}
{"count": 9, "time_first": 1317037550, "rrtype": "AAAA",\ {"count": 9, "time_first": 1317037550, "rrtype": "AAAA",
"rrname": "ietf.org", "rdata": "2001:1890:123a::1:1e",\ "rrname": "ietf.org", "rdata": "2001:1890:123a::1:1e",
"time_last": 1330209752} "time_last": 1330209752}
]]> ]]>
</artwork></figure> </artwork></figure>