Go to file
Fabian Stamm 55354c2381
Some checks failed
the build failed
Adding stream interface
2018-12-03 08:52:54 +01:00
src Adding stream interface 2018-12-03 08:52:54 +01:00
.drone.yml Rewriting of backend 2018-11-30 21:48:27 +01:00
.editorconfig Adding .editorconfig 2018-05-17 09:31:48 +02:00
.gitignore Rewriting of backend 2018-11-30 21:48:27 +01:00
.travis.yml Add travis CI and adding yarn.lock to tracked files 2018-05-17 13:31:17 +02:00
package-lock.json Rewriting of backend 2018-11-30 21:48:27 +01:00
package.json Adding stream interface 2018-12-03 08:52:54 +01:00
Readme.md Add request flow handler 2018-12-03 07:54:37 +01:00
tsconfig.json First basic implementation of protocol. 2018-05-13 12:07:43 +02:00

NodeName-Core

This repository is part of the NodeName Project, a simple to use and very flexible Nameserver implementation for NodeJS.

What does this NodeName-Core contain?

NodeName-Core is responsible for several things:

  • parsing incoming DNS requests
  • serializing outgoing answers
  • providing storage backend API definition

API

   const Core = new DnsCore();
   Core.addStorage(new AnyStoragePlugin(options), timeout?);
   // One or multiple storage plugins
   // All Storage engines are requested at the same time all their results will be processed
   // Optionally an timeout can be defined after wich this storage engine will be ignored
   // If no others answer an error is returned in Response

   Core.addMonitoring(new MonitoringPlugin(options));
   // Async called Monmitoring plugin.

   Core.addListener(new ListenetPlugin(options));

   // The question plugin can handle on or more Questions and needs to
   // make shure, that it creates the desired output. It is responsible
   // for handeling the question and optionally add additional questions
   // to be resolved.
   Core.addQuestionHandler(new QuestionPlugin(options));