Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

sampointer/digaws

Repository files navigation

digaws GoDoc Go Report Card goreleaser

Look-up region and other information for any AWS-owned IP address:

$ digaws $(dig netflix.com +short)
prefix: 52.208.0.0/13 region: eu-west-1 service: AMAZON, network_border_group: eu-west-1
prefix: 52.208.0.0/13 region: eu-west-1 service: EC2, network_border_group: eu-west-1
prefix: 52.18.0.0/15 region: eu-west-1 service: AMAZON, network_border_group: eu-west-1
...
$ digaws 52.94.76.5 2a05:d07a:a0ff:ffff:ffff:ffff:ffff:aaaa
prefix: 52.94.76.0/22 region: us-west-2 service: AMAZON, network_border_group: us-west-2
prefix: 2a05:d07a:a000::/40 region: eu-south-1 service: AMAZON, network_border_group: eu-south-1
prefix: 2a05:d07a:a000::/40 region: eu-south-1 service: S3, network_border_group: eu-south-1

An online version of this tool can be found at runson.cloud.

Installation

Homebrew

brew tap sampointer/digaws
brew install digaws

Packages

Debian and RPM packages can be found on the releases page.

Docker

git clone https://github.com/sampointer/digaws; cd digaws
docker build -t digaws .
docker run --rm -it digaws $(dig netflix.com +short)

Similar tools

Company Tool
AWS digaws
Azure digaz
Google digg