A small utility tool to check whether an IP Address belongs to AWS. The input IP Address can be specified directly or via a Domain Name
It is writting in Go, mainly to avoid the need to install any runtime environment (e.g. JVM, Python, or node.js).
Simply, it downloads the ip-ranges.json file, parse it, then search in it for desired IP address.
For that, it needs access to the internet (also if a Domain Name is used, then the access to a DNS server is needed)
More details are here
go build -o bin\aws-ip-addr-windows-amd64.exe .\cmd
or (for a release version)
go build -o bin\aws-ip-addr-windows-amd64-release.exe -ldflags "-s -w" .\cmd
- To check an IP address:
bin\aws-ip-addr-windows-amd64.exe 35.179.8.33
- To check a Domian Name:
bin\aws-ip-addr-windows-amd64.exe - dnssec-name-and-shame.com