Install Dependencies
Ensure you have Rust and required system libraries installed.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Clone and Build
Get the source code and compile the DNS server.
git clone https://github.com/thakares/nx9-dns-server.git
cd nx9-dns-server
cargo build --release
Configure and Run
Set up your DNS records and start the server.
export DNS_DB_PATH="dns.db"
export DNS_BIND="0.0.0.0:53"
./target/release/dns_server