Socket
Book a DemoInstallSign in
Socket

dnsman

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnsman

Simple dns manager, allows you to easily define your own domains handled by it.

latest
Source
npmnpm
Version
0.6.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dns manager

Simple dns manager, allows you to easily define your own domains handled by it.

Overview

By default, dnsman reads /etc/dnsman/records and responds to requests by choosing the most specific entry.

# /etc/dnsman/records

# Upstream/fallback servers
nameserver 8.8.8.8
nameserver 8.8.4.4

# Proxy example.com to these, ordered by priority
ns .example.com 1.1.1.1
ns .example.com 1.0.0.1

# Route the .dev tld to localhost
a .dev 127.0.0.1
txt .domain.com "text entry"
txt .domain.com "includes""quotes"

Upstream/fallback server

Normally, dns servers will respond with an upstream server to the client and let the client make a new request to that server. This server will pretend to be all-knowing, or at least for the first hop, forwarding the request to a known upstream server if it doesn't know.

Matching

Matching records is performed by the tailing end of the request. Assume requests always have a dot prepending their least signigicant section.

ConfigRequestMatches
.devmydomain.devyes
.devexample.devyes
example.comexample.devno
example.comexample.comyes
example.com1example.comyes
example.comsub.example.comyes
example.comsub.1example.comyes
.example.comexample.comyes
.example.com1example.comno
.example.comsub.example.comyes
.example.comsub.1example.comno

FAQs

Package last updated on 11 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts