~emersion/lodns

A local DNS resolver
Add resolv.conf example file
readme: add setcap invocation to allow binding to port 53
readme: add short building section

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~emersion/lodns
read/write
git@git.sr.ht:~emersion/lodns

You can also use your local clone with git send-email.

#lodns

A local DNS resolver. Designed to forward DNS requests to a DNS-over-TLS or DNS-over-HTTPS server.

#Usage

To listen for local connections on port 53 and forward requests to ns0.fdn.fr:

lodns ns0.fdn.fr

lodns itself will need to perform DNS queries to lookup the DoT or DoH hostname. To set the resolv.conf file to use for these lookups, the -bootstrap-resolv-conf option can be used. For instance, to use the local DNS resolver with NetworkManager:

lodns -bootstrap-resolv-conf=/run/NetworkManager/no-stub-resolv.conf ns0.fdn.fr

The system-wide /etc/resolv.conf file can be symlinked to the resolv.conf file in this repository to configure applications with lodns.

#Building

go build

To allow lodns to listen on port 53:

setcap cap_net_bind_service=+ep ./lodns

#License

AGPLv3 only, see LICENSE.

Copyright © 2023 Simon Ser