An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# godnsbl [![Travis-CI](https://travis-ci.org/mrichman/godnsbl.svg)](https://travis-ci.org/mrichman/godnsbl) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/mrichman/godnsbl)](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
}
...
]
```