A DNS Server written in Rust to resolve zerotier-device names into their IP. See https://zerotier.com/ for more information.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Make sure to have Rust and Cargo installed.
$ git clone https://github.com/whachoe/zerotierDNS
$ cargo build --release
$ cargo run -- --help
$ cargo run -- -h
ZerotierDNS 1.0.0
Whachoe <[email protected]>
Dns-server for zerotier networks. Resolves names of devices to their IP
USAGE:
zerotier-dns [OPTIONS] --network <YOUR-ZEROTIER-NETWORK-ID> --token <YOUR-ZEROTIER-API-TOKEN>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --bind <IP to bind on> If left out, the app will bind on all available IP's. It's more secure
to bind the IP of your local zerotier-client.
-p, --proxy <IP of Proxy> IP of the server to proxy requests to in case we did not find a match.
[default: 8.8.8.8]
-n, --network <YOUR-ZEROTIER-NETWORK-ID> The Network ID of your zerotier-network
-t, --token <YOUR-ZEROTIER-API-TOKEN> See https://my.zerotier.com/ to create one
Once built, you can find the binary in target/release
. Just put it somewhere in your PATH and type zerotier-dns -h
.
- Cache responses from the Zerotier API
- Optimize for speed
- Add all possible record-types
- DNS-Sec
This project is licensed under the MIT License - see the LICENSE.md file for details
- Most of the DNS-code was taken from the dnsguide written by Emil Hernvall.