Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DNS Answers: Add ancillary information (#828)
* Rename FiveColRow to DNSAnswerRow We may want to add some columns in the future. * DNSAnswerRow -> DnsAnswerRow For consistency with the pre-existing DnsAnswerCell. * DnsAnswerRow: Add ancillary information If the measurement JSON for a DNS answer contains "asn" and/or "as_org_name" fields, we use that to populate the new "Ancillary info" column in human-readable form. * DnsAnswerRow: Improve readability by varying column widths The TTL/class/type values are always short, so make the corresponding fields narrower to leave more space for the other fields, which can be longer. * Renamed "ancillary information" to "Answer IP Info" Also improve output in the (impossible?) case where "asn" is not set, but "as_org_name" is. * DnsAnswerIpInfo: New utility function Factored out from QueryContainer. * Rename DnsAnswerIpInfo to dnsAnswerIpInfo Normal functions seem to use camelCase by convention. * Simplify dnsAnswerIpInfo() Use auxiliary variables to avoid nested conditionals.
- Loading branch information
05f908f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
explorer – ./
explorer-one.vercel.app
explorer-git-master-ooni1.vercel.app
explorer-ooni1.vercel.app