{"repo":"cottand/leng","free":true,"listed":false,"github":"https://github.com/cottand/leng","clone":"git clone https://github.com/cottand/leng.git","description":":zap: fast dns server, built to block advertisements and malware servers","language":"Go","stars":67,"topics":["adblock","adblocking-dns","dns","selfhosted","nix-flake","nixos-module"],"license":"MIT","category":"networking-infra","readme_excerpt":"leng :zap: fast dns server, built to block advertisements and malware servers Forked from looterz/grimd Features - [x] DNS over UDP - [x] DNS over TCP - [x] DNS over HTTP(S) (DoH as per RFC-8484) - [x] Prometheus metrics API - [x] Custom DNS records support - [x] Blocklist fetching - [x] Hardcoded blocklist config - [x] Hardcoded whitelist config - [x] Fast startup and tiny image (so it can be quickly redeployed for use with templating for service discovery) - [x] Small memory footprint ( 50MBs with metrics and DoH enabled) - [x] NixOS Flake for easy deployment Installation You can also - download one of the binary releases - use the Docker image - docker run -d -p 53:53/udp -p 53:53/tcp -p 8080:8080/tcp ghcr.io/cottand/leng - use Docker compose YML - use the Nix flake - to run: nix run github:cottand/leng - or add as a NixOS module Detailed guides and resources can be found in the docs website. Configuration By default, leng binds DNS to 0.0.0.0:53 and loads a few known blocklists. The default settings should be enough for most. See the wiki for the full config, including defaults and dynamic config reloading. CLI Flags Building Requires golang 1.21 or higher, you build leng like any other golang application, for example to build for linux x64 Building Docker Run container and test By default, if the program runs in a docker, it will automatically replace 127.0.0.1 in the default configuration with 0.0.0.0 to ensure that the API interface is available. Objectives - [x] ARM64","default_branch":null,"files":null,"tree":[],"storefront":"/r/cottand","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cottand/leng/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}