ipasn.net DNS tricks¶
source for the things below: https://blog.apnic.net/2026/02/09/from-the-stupid-dns-tricks-department-ipasn-net/
- Query an IPv4 prefix directly (no octet-reversal) to get compact origin-ASN mapping data from
ipasn.net
- Query an IPv6 prefix directly to get compact origin-ASN mapping data for IPv6
- Get the full enriched record for an IP (BGP visibility, prefix, ASN, org, country, RIR, registration, and RPKI fields)
- Request the same enriched IP record as JSON-formatted TXT output for easier machine parsing
- Resolve a hostname through the
ipasn.netDNS backend and return an enriched record for the default address family
- Resolve a hostname but force IPv4 (
A) lookup
- Resolve a hostname but force IPv6 (
aaaa) lookup
- Query a single attribute (
cc) to return only the country code for an IP
- Query a single RPKI-focused attribute (
rpki) for concise validation/prefix/AS/TAL details