Crate cymrust [] [src]

Simple library to query Team Cymru's IP-to-ASN mapping information via DNS.

Please, see Team Cymru's documentation before using this library. Cymru also warns not to use their mapping as Geo-IP service.

For easiest IP-to-ASN mapping, see cymru_ip2asn function. To query only information about AS Number, see cymru_asn.

Structs

CymruASN

ASN information

CymruIP2ASN

IP-to-ASN mapping information

Functions

cymru_asn

Resolve information about AS number using DNS

cymru_ip2asn

Query Cymru's IP-to-ASN mapping service using DNS

Type Definitions

AsNumber

AsNumber type to abstract away the fact that AS Number is (currently) 32 bit unsigned integer.