localns

Crates.iolocalns
lib.rslocalns
version1.0.1
sourcesrc
created_at2022-05-02 08:27:06.234022
updated_at2023-10-04 09:53:59.214545
descriptionServes DNS records for all of your local services.
homepagehttps://github.com/Mossop/localns
repositoryhttps://github.com/Mossop/localns
max_upload_size
id578940
size271,626
Dave Townsend (Mossop)

documentation

https://localns.readthedocs.io/en/latest/

README

LocalNS

Documentation Status Tests

LocalNS is a DNS server that serves records for names discovered from various sources such as Docker and Traefik. It is designed to need minimal configuration and will dynamically update as names known to the sources change. When a record is not known it will fall back to an upstream DNS server.

Put in a more practical way. If you run a bunch of containers in docker on a network that is accessible then this will act as a nameserver, automatically mapping names you define to whatever IP docker happens to pick when the container starts. And docker is just one such source of names supported.

Unlike many other DNS servers LocalNS does not work on a zone by zone basis and does not (unless configured to do so) claim to be the authority for any domain. Instead the configured sources provide known names and if LocalNS is asked to resolve a name it knows of it will respond. For anything else the query is forwarded to upstream servers. This allows for internal services to use the same domain name as other public services and allows LocalNS to respond with an internal address for a name that also has a public address, a split horizon configuration.

LocalNS is probably not production ready however it is running without issue as the main name server for my own local network so is reasonably stable.

Read the documentation for more on how to install and use LocalNS.

Commit count: 128

cargo fmt