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

Latest commit

 

History

History
38 lines (22 loc) · 949 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 949 Bytes

rrdaclient

Go bindings for RRDA https://github.com/fcambus/rrda

Go version support yet to be tested, coded with 1.3.1 linux/amd64

Description

https://github.com/fcambus/rrda

RRDA is a REST API written in Go allowing to perform DNS queries over HTTP, and to get reverse PTR records for both IPv4 and IPv6 addresses. It outputs JSON-encoded DNS responses.

RRDA is a recursive acronym for "RRDA REST DNS API".

This library (rrdaclient) provides Go bindings to consume this API

How to use

//get library
$ go get github.com/omie/rrdaclient

//import library
import github.com/omie/rrdaclient

//call functions
response = rrdaclient.GetHostAddress("<input>")

//Response is of type *rrdaclient.APIResponse
//and the structure resembles the RRDA JSON schema

Further Reading

http://www.statdns.com/api/

License

MIT License