whois-api is an API service for whois lookup.
Build the docker image:
$ docker build -t whois-api:0.0.1 .Run the image using docker-compose:
$ docker-compose upNow you can use the api:
$ curl -X POST http://localhost:5000/api/whois/ \
-H "Content-Type: text/plain" \
-H 'X-Whois-key: fakekey123' \
-d "google.com"