saiwolf / rust-dns-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A DNS Server in Rust

This is my repo which follows the DNS server guide found here by Emil Hernvall.

THIS CODE IS JUST ME LEARNING RUST. IT'S NOWHERE NEAR PRODUCTION WORTHY. USE AT YOUR OWN RISK, YADDA YADDA ETC.

The original guide puts all the code into one main.rs file, so I refactored it into the rust mod system hiearchy.

You can check out their hermes repo, if you want to see what a polished finished result looks like!

License πŸ“ƒ

The original repo doesn't specify a license, so I'm using the MIT license; which the hermes repo also uses.

Building πŸ› 

You'll need cargo and a stable rust toolchain, both easily obtainable by going to rustup.rs and following the instructions there.

Once you have cargo and the rust toolchain installed, then simply checkout this repository, and in that same directory run cargo build. You'll find the program under ./target/debug/.

Running πŸ¦€

You can simply execute cargo run in the main repo directory after you clone it. This program doesn't terminate. It loops forever, so you'll need to either CTRL+C or send a SIGHUP to kill it.

About

License:MIT License


Languages

Language:Rust 100.0%