This project makes use of the https://team-cymru.com/community-services/ip-asn-mapping/ service.
A command line tool for looking up details about domains and IP addresses.
domaininfo git:main ❯ make build
go build -o ./bin/domaininfo ./cmd/domaininfo
domaininfo git:main ❯ ./bin/domaininfo www.cnn.com
{
"domain": "www.cnn.com",
"canonicalNamesTargets": [
"turner-tls.map.fastly.net."
],
"ipv4AddressInfo": {
"151.101.1.67": [
{
"asn": "54113",
"addressBlock": "151.101.0.0/22",
"country": "US",
"internetRegistry": "arin",
"date": "2016-02-01"
}
],
"151.101.129.67": [
{
"asn": "54113",
"addressBlock": "151.101.128.0/22",
"country": "US",
"internetRegistry": "arin",
"date": "2016-02-01"
}
],
"151.101.193.67": [
{
"asn": "54113",
"addressBlock": "151.101.192.0/22",
"country": "US",
"internetRegistry": "arin",
"date": "2016-02-01"
}
],
"151.101.65.67": [
{
"asn": "54113",
"addressBlock": "151.101.64.0/22",
"country": "US",
"internetRegistry": "arin",
"date": "2016-02-01"
}
]
},
"ipv6AddressInfo": {
"2a04:4e42:200::323": [
{
"asn": "54113",
"addressBlock": "2a04:4e42::/36",
"country": "EU",
"internetRegistry": "ripencc",
"date": "2013-07-18"
}
],
"2a04:4e42:400::323": [
{
"asn": "54113",
"addressBlock": "2a04:4e42::/36",
"country": "EU",
"internetRegistry": "ripencc",
"date": "2013-07-18"
}
],
"2a04:4e42:600::323": [
{
"asn": "54113",
"addressBlock": "2a04:4e42::/36",
"country": "EU",
"internetRegistry": "ripencc",
"date": "2013-07-18"
}
],
"2a04:4e42::323": [
{
"asn": "54113",
"addressBlock": "2a04:4e42::/36",
"country": "EU",
"internetRegistry": "ripencc",
"date": "2013-07-18"
}
]
},
"asnDescriptions": [
{
"asn": "54113",
"country": "US",
"internetRegistry": "arin",
"date": "2011-10-04",
"org": "FASTLY, US"
}
],
"caaInfos": [
{
"domain": "www.cnn.com",
"cas": []
},
{
"domain": "turner-tls.map.fastly.net.",
"cas": []
},
{
"domain": "cnn.com",
"cas": []
}
]
}
The command line output provides:
- The canonical name which is the final name after following zero or more CNAME records
- IPv4 and IPv6 addresses from DNS lookup
- Autonomous system number (ASN) info for an IP address
- A description of all autonomous system numbers found for the IP addresses
- CAA record lookup according to https://docs.digicert.com/manage-certificates/dns-caa-resource-record-check/