This method extracts valid IPv4 addresses from raw text. The validation
is done using the standard socket call. The extended parameter adds the
origin of the IP address via Cymru IP/ASN service.
The class has been extended to add the localizedomain
method to geolocalize DNS records associated for an existing domain.
The localization rely on the Team Cymru ip2asn lookup via DNS.
The class domainclassifer got two methods:
- domain() to extract all potential domains from a raw text
The method returns a list.
- validdomain() returning all the existing domains based on their
known DNS records sets like A,AAAA or CNAME records.
The method returns a set. If the extended option is requested, it's a list
of tuples containing the domain with their existing DNS records and
their returned data.