0.2.1 • Published 4 months ago

better-hosts v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

better-hosts

Dead simple DNS server using syntax similar to hosts file.

Motivations

hosts works well, until: 1. you need wildcard-based rules like 127.0.0.1 *.local-service. 2. you need ban rules like -example.com. 3. you need to share records in the hosts file to other devices. 4. you don't want to have to request administrator or root privileges every time you edit it.

better-hosts solves these problems by creating a DNS server that uses the hosts file.

Install

npm install --global better-hosts
# or
yarn global add better-hosts

Usage

Usage: better-hosts [options] <filename>

Options:
  -V, --version               output the version number
  --fallback-server <server>
  --timeout <seconds>          (default: "30")
  --port <port>                (default: "53")
  --log <level>                (default: "info")
  -h, --help                  display help for command

Example:

better-hosts hosts.txt \
  --fallback-server=1.1.1.1:53
0.2.1

4 months ago

0.2.0

4 months ago

0.1.21

1 year ago

0.1.20

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago