/geo-dns

:globe_with_meridians: A dns server and client implementation in node.js

Primary LanguageJavaScriptOtherNOASSERTION

geo-dns

A DNS server supporting geographic service requests

Installation

Clone the repository and run

$ npm install

in the main folder.

Run the simple standalone server

$ cd example
$ node  geo-server-std.js

Test the simple standalone server

$ dig @127.0.0.1 -p 53 _dr._iot._udp -t PTR
$ dig @127.0.0.1 -p 53 dr56.unipr.it -t A

Run the server with Redis database

Install Redis (if you don't have it yet): https://redis.io/

Run Redis with default configuration (it will listen on port 6379).

Then:

$ npm install redis
$ cd example
$ node  geo-server-redis.js

You can test it using the same dig commands listed above.

Relevant Specifications