| Crates.io | rust-dns |
| lib.rs | rust-dns |
| version | 0.1.1 |
| created_at | 2024-12-21 10:19:48.608092+00 |
| updated_at | 2024-12-21 11:10:02.094233+00 |
| description | A lightweight, high-performance DNS server implementation in Rust |
| homepage | |
| repository | https://github.com/dinxsh/rdns |
| max_upload_size | |
| id | 1490917 |
| size | 33,761 |
RustDNS [WIP] is an open-source, lightweight, high-performance DNS server implementation in Rust. It provides a simple yet powerful solution for handling DNS queries and managing DNS records.
Add rust-dns to your project using cargo:
cargo add rust-dns
Or add it manually to your Cargo.toml:
[dependencies]
rust-dns = "0.1.1"
use rust_dns::{DnsServer, DnsRecord};
fn main() -> std::io::Result<()> {
// Create a new DNS server instance
let server = DnsServer::new("127.0.0.1:5300")?;
// Run the server
server.run()
}
Run the DNS server:
rust-dns run --address 127.0.0.1:5300
Add a DNS record:
rust-dns add example.com A 93.184.216.34 --ttl 3600
git clone https://github.com/dinxsh/rdns.git
cd rdns
cargo build --release
For detailed documentation, please visit docs.rs/rust-dns.
We welcome contributions to RustDNS! Here are some ways you can contribute:
Please see our Contributing Guide for more details on how to get started.
We are committed to providing a friendly, safe, and welcoming environment for all contributors. Please read and follow our Code of Conduct.
RustDNS is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or need support, please open an issue on GitHub or reach out to the maintainers.