An open API service indexing awesome lists of open source software.

https://github.com/ivanbgd/dns-server-rust

DNS server
https://github.com/ivanbgd/dns-server-rust

dns dns-server

Last synced: 11 months ago
JSON representation

DNS server

Awesome Lists containing this project

README

          

# DNS Server

# Running the Program

- If you would like to enable the added logging functionality, first set the `RUST_LOG` environment variable.
- `export RUST_LOG=[trace | debug | info | warn]`
- Run `./run.sh` in one terminal session, and `dig @127.0.0.1 -p 2053 +noedns example.com`
or some other network tool in another, where `example.com` is an example that we want to resolve.
- The program returns a fixed arbitrary address as a solution.
- Run as `./run.sh --resolver

` to work in the forwarding DNS server mode.
- `
` should be of the form `:`.
- A forwarding DNS server, also known as a DNS forwarder, is a DNS server that is configured to pass DNS queries it
receives from clients to another DNS server for resolution, instead of directly resolving DNS queries by looking
up the information in its own local cache or authoritative records.

# Running the Tests

```sh
cargo test conn
```