[InterNetNews/inn] 1a75aa: innreport: Better readership stats by domain

Julien ÉLIE noreply at github.com
Mon Jul 22 19:01:16 UTC 2024


  Branch: refs/heads/main
  Home:   https://github.com/InterNetNews/inn
  Commit: 1a75aa6728f1910cae2e772e3b4abb6f847f2137
      https://github.com/InterNetNews/inn/commit/1a75aa6728f1910cae2e772e3b4abb6f847f2137
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2024-07-20 (Sat, 20 Jul 2024)

  Changed paths:
    M doc/pod/news.pod
    M scripts/innreport_inn.pm

  Log Message:
  -----------
  innreport: Better readership stats by domain

The current code only removes the first component
of the domain, which is not enough in some cases like
"ec2-13-236-155-204.ap-southeast-2.compute.amazonaws.com" and
"ec2-18-184-57-186.eu-central-1.compute.amazonaws.com" which would end
up in several lines gathered by AWS datacenters whereas we would just
want a report of AWS connections from "*.compute.amazonaws.com".

To improve the report, just keep up to the last 3 components of the
hostname.  (Some country code top-level domains have 2 components, like
".co.uk" so we need a minimum of 3 components, which looks fine during
my testings.)

Also, add code to correctly report IPv6 addresses as unresolved instead
of unknown.

close #305



To unsubscribe from these emails, change your notification settings at https://github.com/InterNetNews/inn/settings/notifications


More information about the inn-committers mailing list