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
- Host: GitHub
- URL: https://github.com/ivanbgd/dns-server-rust
- Owner: ivanbgd
- License: mit
- Created: 2025-04-09T00:28:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T00:37:31.000Z (about 1 year ago)
- Last Synced: 2025-04-09T01:28:19.499Z (about 1 year ago)
- Topics: dns, dns-server
- Language: Rust
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```