Please, see Team Cymru's documentation before using this library. Cymru also warns not to use their mapping as Geo-IP service.
IP-to-ASN mapping information
Resolve information about AS number using DNS
Query Cymru's IP-to-ASN mapping service using DNS
AsNumber type to abstract away the fact that AS Number is (currently) 32 bit unsigned integer.