https://github.com/mrichman/godnsbl
Go library for RBL (Real-time Blackhole List) lookups
https://github.com/mrichman/godnsbl
blackhole go golang lookup rbl
Last synced: about 1 month ago
JSON representation
Go library for RBL (Real-time Blackhole List) lookups
- Host: GitHub
- URL: https://github.com/mrichman/godnsbl
- Owner: mrichman
- License: mit
- Created: 2016-06-15T18:56:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T14:51:47.000Z (almost 5 years ago)
- Last Synced: 2025-03-28T21:03:29.494Z (about 2 months ago)
- Topics: blackhole, go, golang, lookup, rbl
- Language: Go
- Homepage: https://en.wikipedia.org/wiki/DNSBL
- Size: 11.7 KB
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# godnsbl [](https://travis-ci.org/mrichman/godnsbl) [](LICENSE) [](https://goreportcard.com/report/github.com/mrichman/godnsbl)
Package godnsbl lets you perform RBL (Real-time Blackhole List - https://en.wikipedia.org/wiki/DNSBL)
lookups using Go.The command-line tool in `cmd` demonstrates the use of [goroutines](https://tour.golang.org/concurrency/1) to perform concurrent lookups.
To test:
```
git clone https://github.com/mrichman/godnsbl
cd godnsbl/cmd/godnsbl
go run main.go 127.0.0.2
```The output will be a JSON-formatted list of results with the following fields:
```
[
...
{
"rbl": "b.barracudacentral.org",
"address": "127.0.0.2",
"listed": true,
"text": "http://www.barracudanetworks.com/reputation/?pr=1\u0026ip=127.0.0.2",
"error": false,
"error_type": null
}
...
]
```