dnscrypt-list

module
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: Apache-2.0

README

dnscrypt-list

CLI which generates blocked-names, blocked-ips, allowed-names for dnscrypt-proxy

Types of sources

url - http or https links to the list of domains

file - path to the local file

Formats

domain - new domain each line

bind - BIND zone file. Example: zone "domain.com" {type master; file "/etc/namedb/blockeddomain.hosts";};

host - similar to /etc/hosts Example: 0.0.0.0 domain.com

Temporary directory

Folder for Badger DB will be created after the first start

/tmp/dnscrypt/
├── 000001.vlog
├── DISCARD
├── KEYREGISTRY
└── MANIFEST

You can define another path in config.yml

Build

Local development

To build local version you need to install goreleaser

macOS

brew install goreleaser/tap/goreleaser
brew install goreleaser

Build binary for the current OS

make build-local

output

dist
├── config.yaml
└── dnscrypt-list_darwin_amd64
    └── dnscrypt-list

To run the binary with the config.yml in the current folder

./dist/dnscrypt-list_darwin_amd64/dnscrypt-list

or specify path to the config file

./dist/dnscrypt-list_darwin_amd64/dnscrypt-list --config=./dir/config.yml

Directories

Path Synopsis
cmd
lib
db
files
Package files contains all utilities to work with files
Package files contains all utilities to work with files
logger
Package logger provides logging functions
Package logger provides logging functions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL