Sign inSign up

highcanfly/whois-rest

By highcanfly

•Updated almost 3 years ago

This is a simple Go service that exposes a REST API at the URL /whois

Image
0

587

highcanfly/whois-rest repository overview

⁠WHOIS-REST https://github.com/eltorio/whois-rest⁠

This is a simple Go service that exposes a REST API at the URL /whois. It queries the whois.cymru.com server (or another server specified by the WHOIS_SERVER environment variable) using the WHOIS protocol on port 43. The /whois endpoint accepts a host parameter to specify the host to be queried.
By default the server listen on port 8080 (or another port specified by the HTTP_PORT environment variable)

⁠Requirements

  • Go 1.16 or later

⁠Building

To build the service, run:

go build -o main .

⁠Docker image

docker pull highcanfly/whois-rest

Tag summary

Content type

Image

Digest

sha256:724be7c9e…

Size

7 MB

Last updated

almost 3 years ago

docker pull highcanfly/whois-rest