group results by core domain
"Core domain" is for our pusposes domain one level below domain in Public Suffix List. E.g. com.
and co.uk.
are both on PSL. Example core domains are then example.com.
and example.co.uk.
.
diffstat tool should have a level where statistics are grouped by core domain, so e.g. all three failures (in single result category) should be grouped together.
- 0120-0-ams30befd8225f0e083b76f6ab9226057c58b90501609.beacon.rum.dynapis.info.
- 0120-0-ams303452cd4c1fa8c712fdb0d2efee031c937f73d649.beacon.rum.dynapis.info.
- 0120-0-ams308b4c784031489e7cbf961d059e56f7074e2deb2f.beacon.rum.dynapis.info.
These three domain names should be grouped to dynapis.info.
Current result looks like this:
== Field "rcode" mismatch ('NOERROR', 'SERVFAIL') query details
iNcOmiNG.teLEMETRy.moZiLla.orG. AAAA 7 mismatches
iNcOmInG.TElEmetRY.MoZiLlA.orG. A 4 mismatches
nORmANDy-cLoudfROnT.CdN.mOziLLA.nET. AAAA 4 mismatches
NORmAnDY-cLoudFrONT.cdn.Mozilla.NET. A 4 mismatches
SNiPPeTs.CDN.MOzilla.neT. AAAA 3 mismatches
NS2.SPYROCOIN.BID. A 2 mismatches
ns1.spyrocoin.bid. AAAA 2 mismatches
ns1.spyrocoin.bid. A 2 mismatches
In the end it should look like this:
== Field "rcode" mismatch ('NOERROR', 'SERVFAIL') core domain statistics
moziLla.org. 11 mismatches
mozilla.net. 11 mismatches
spyrocoin.bid. 6 mismatches
[... other core domains statistics here ...]
== Field "rcode" mismatch ('NOERROR', 'SERVFAIL') query details
iNcOmiNG.teLEMETRy.moZiLla.orG. AAAA 7 mismatches
iNcOmInG.TElEmetRY.MoZiLlA.orG. A 4 mismatches
nORmANDy-cLoudfROnT.CdN.mOziLLA.nET. AAAA 4 mismatches
NORmAnDY-cLoudFrONT.cdn.Mozilla.NET. A 4 mismatches
SNiPPeTs.CDN.MOzilla.neT. AAAA 3 mismatches
NS2.SPYROCOIN.BID. A 2 mismatches
ns1.spyrocoin.bid. AAAA 2 mismatches
ns1.spyrocoin.bid. A 2 mismatches