rust-kernel
Rustbelt: a hobby x86_64 kernel written in Rust
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | //! `host name` (alias `nslookup`): look up a name's IPv4 addresses.
//!
//! DNS turns names into addresses. We send a UDP query to the DNS server
//! DHCP told us about (QEMU's is 10.0.2.3, which forwards to the host's
//! resolver), asking for the name's "A" (IPv4 address) records. smoltcp
//! builds and parses the DNS packets; the kernel's `resolve` syscall wraps
//! it (on Linux, DNS lives in the C library instead).
|