Skip to content

Commit 230fc2b

Browse files
feat: Implemented dns server
1 parent f945e4b commit 230fc2b

File tree

5 files changed

+472
-0
lines changed

5 files changed

+472
-0
lines changed

projects/dns-server/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "dns-server"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]

projects/dns-server/query_packet.txt

39 Bytes
Binary file not shown.
55 Bytes
Binary file not shown.

projects/dns-server/result.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
DnsHeader {
2+
id: 37686,
3+
recursion_desired: true,
4+
truncated_message: false,
5+
authoritative_answer: false,
6+
opcode: 0,
7+
response: true,
8+
rescode: NOERROR,
9+
checking_disabled: false,
10+
authed_data: false,
11+
z: false,
12+
recursion_available: true,
13+
questions: 1,
14+
answers: 1,
15+
authoritative_entries: 0,
16+
resource_entries: 0,
17+
}
18+
DnsQuestion {
19+
name: "riarauniversity.ac.ke",
20+
qtype: A,
21+
}
22+
A {
23+
domain: "riarauniversity.ac.ke",
24+
addr: 197.136.17.37,
25+
ttl: 674,
26+
}

0 commit comments

Comments
 (0)