Build on golang, this is an web application to identify owners of ip addresses on registro.br database.
The software uses public registro.br data to identify.
Writting in go, is very lightweight and fast.
curl serverhost:port -X POST -d '
{
"addresses": [
{ "ip": "45.180.216.33" },
{ "ip": "45.188.140.1" },
{ "ip": ""45.188.140.32342"" }
]
}'
The result will be:
{
"results":{
"45.180.216.33":{
"code":"AS269194",
"name":"STAR1 INTERNET",
"document":"20.241.468/0001-85"
},
"45.188.140.1":{
"code":"AS269532",
"name":"ROUTINGER INTERNET E TI",
"document":"32.915.048/0001-16"
}
},
"errors":{
"45.188.140.32342":"invalid ip address: 45.188.140.32342"
}
}
We've created a simple docker image, to run:
# type this on your favorite terminal
docker run -p 0.0.0.0:4444:4444 mperon/ip-whois
Then go to your web browser and type: http://127.0.0.1:4444/status:
{
"database": {
"companies": 8944,
"last_update": "2023-02-12T23:12:41.543770388Z",
"next_update": "2023-02-13T23:12:41.543770388Z"
},
"source": {
"interval": "24h0m0s",
"url": "http://ftp.registro.br/pub/numeracao/origin/nicbr-asn-blk-latest.txt"
},
"status": {
"addresses": 0,
"notfound": 0,
"requests": 0,
"running": true,
"success": 0
}
}