You can install lazydns using a number of methods depending on your platform and preferences.
cargo install, the rusty wayInstalls the latest published crate to your Cargo bin directory:
cargo install lazydns
Note on the WebUI:
cargo installbuilds the server core only. For a binary with the WebUI bundled in, use the pre-built release binaries.
Download the .deb from GitHub Releases and install with dpkg:
curl -LO https://github.com/lazywalker/lazydns/releases/latest/download/lazydns_<version>-1_amd64.deb
sudo dpkg -i lazydns_<version>-1_amd64.deb
Download the arm64 .deb and install with dpkg:
curl -LO https://github.com/lazywalker/lazydns/releases/latest/download/lazydns_<version>-1_arm64.deb
sudo dpkg -i lazydns_<version>-1_arm64.deb
You can install lazydns from the Arch User Repository (AUR) using an AUR helper like yay:
yay -S lazydns-bin
after installation, modify the config file at /etc/lazydns/lazydns.yaml as needed, then start the service:
sudo systemctl start lazydns
the service will auto-start on boot. Check status with:
sudo systemctl status lazydns
check logs with:
sudo journalctl -u lazydns -f
or view the log file at /var/log/lazydns/lazydns.log.*.
Tap the Homebrew repository and install via brew:
brew tap lazywalker/tap
brew install lazydns
# make modifications to config file if needed
# then start the service
brew services start lazydns
Run lazydns from the official Docker image. Example command (adjust volumes, ports and environment as needed):
docker run -d \
--name lazydns \
-p 53:53/udp -p 53:53/tcp \
-p 853:853/tcp -p 443:443/tcp \
-p 784:784/tcp -p 8000:8000/tcp -p 8001:8001/tcp \
-e TZ=Asia/Shanghai \
-v /path/to/config:/etc/lazydns \
lazywalker/lazydns:latest
cargo install: cargo install --force lazydns.deb: download the new .deb and run sudo dpkg -i againdocker pull lazywalker/lazydns:latest
docker rm -f lazydns
docker run ... (recreate with same args)
cargo-deb or native packaging tooling appropriate for your distribution.scripts/cross_build.sh helper and the docker/ folder for example Dockerfiles.