You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Fabian Stamm 07047ee8cb Fixing wrong variable name 3 years ago
src Fixing wrong variable name 3 years ago
.drone.yml Rewriting of backend 3 years ago
.editorconfig Adding .editorconfig 3 years ago
.gitignore Rewriting of backend 3 years ago
.travis.yml Add travis CI and adding yarn.lock to tracked files 3 years ago
Readme.md Add request flow handler 3 years ago
package-lock.json Rewriting of backend 3 years ago
package.json Adding stream interface 3 years ago
tsconfig.json First basic implementation of protocol. 3 years ago

Readme.md

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));