code wiki / (root) / nx_dns_client_probe.nx

nx_dns_client_probe.nx

buildroot/runtime/nx_dns_client_probe.nx

2764 B84 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind probetopic dns
docsdependenciesstructsconstsfunctions

about

nx_dns_client_probe.nx -- substrate-side UDP DNS verifier. Sends a real DNS query to 127.0.0.1:5353 + verifies the answer. Used by bench/nx_dns_serve_loopback.sh as the live verification step for the DNS daemon. Sovereign per cardinal: no dig, no nslookup, no python; substrate talks to substrate. Returns 0 on success (answer matches expected RDATA 192.0.2.42) or a numeric error code per failure mode. expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_dns.nx nx_dns_client_probe.nx

imports: nx_syscalls_x86_64.nxnx_dns.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_socket nx_dns_build_query nx_dns_put_u16_be nx_dns_encode_name sys_sendto sys_recvfrom

structs

none

consts

15const SOCK_MAGIC_5353: i64 = 5353
17const SOCK_DGRAM_C: i64 = 2

functions

19func bytes_eq(a: *u8, b: *u8, n: i64) -> i64
28func main() -> i64