Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skx/dns-api.org
The code which was previously used at https://dns-api.org/
https://github.com/skx/dns-api.org
dns perl website
Last synced: 2 months ago
JSON representation
The code which was previously used at https://dns-api.org/
- Host: GitHub
- URL: https://github.com/skx/dns-api.org
- Owner: skx
- License: other
- Created: 2014-06-14T06:06:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T07:26:56.000Z (almost 7 years ago)
- Last Synced: 2024-10-26T22:15:58.534Z (2 months ago)
- Topics: dns, perl, website
- Language: Perl
- Homepage:
- Size: 331 KB
- Stars: 19
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**NOTE**: This project has been replaced by a golang port:
* https://github.com/skx/dns-api-go
DNS-API.org
-----------This repository contains the code for a simple daemon which provides
an online DNS-lookup service.The service responds to requests received via HTTP with a JSON-encoded
response. In the event of error this response will be empty.Implementation
--------------This application is written in Perl, and almost all parts of this code are
trivial.* The HTTP-server uses [Dancer](http://search.cpan.org/dist/Dancer/)
* The rate-limiting is applied via [Plack::Middleware::Throttle::Lite](http://search.cpan.org/perldoc?Plack%3A%3AMiddleware%3A%3AThrottle%3A%3ALite)
* The DNS lookups are achieved via [Net::DNS::Resolver](http://search.cpan.org/perldoc?Net%3A%3ADNS%3A%3AResolver)Installation
------------Once this repository is cloned you may launch it via the provided
`run` script, which will cause the deamon to start on port 5001.To deploy for the real world you'll need to install the dependencies
and place behind a reverse HTTP-proxy:# apt-get install twiggy libdancer-perl libnet-cidr-lite-perl libplack-middleware-reverseproxy-perl
Steve
--