code wiki / _hdl_build / nx_dns_probe.nx

nx_dns_probe.nx

buildroot/runtime/_hdl_build/nx_dns_probe.nx

3292 B64 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind probetopic dns
docsdependenciesstructsconstsfunctions

about

nx_dns_probe.nx -- SOVEREIGN A-record resolver probe (zero shell). Resolves a list of hostnames via the SAME nx_dns_resolve_default the sovereign HTTPS client uses, and prints each name -> dotted IPv4 (or FAIL). Purpose: ground-truth the edge DNS (apex vs capability subdomains) so a funcheck TLS-HANDSHAKE-FAIL can be told apart from a DNS-inconsistency (e.g. subdomains pointing at a public IP that does not hairpin from the LAN vantage). Composes nx_https_url_connect's resolver. usage: nx_dns_probe <host> [<host> ...] (defaults to the andelinwest edge set) license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_dns_resolve_a_record.nx nx_dns_probe.nx

imports: nx_syscalls.nxnx_dns_resolve_a_record.nx

imported by: nobody (leaf or entry point)

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

main dp_puts sys_write dp_multi dp_puts ↻ dp_via sys_now_realtime_sec sys_mmap sys_clock_gettime_real nx_dns_resolve_a_record sys_mmap ↻ nx_dns_build_query nx_dns_put_u16_be nx_dns_encode_name sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap sys_sendto sys_close sys_recvfrom nx_dns_parse_response_a nx_dns_get_u16_be nx_dns_skip_name dp_slen dp_puts ↻ dp_putn sys_write ↻ sys_mmap ↻ dp_ip dp_putn ↻ dp_puts ↻

structs

none

consts

10const K_MAGIC_151060489: i64 = 151060489

functions

12func dp_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 4: dp_ipdp_viadp_multimain calls 1: sys_write
13func dp_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: dp_via
14func dp_putn(v: i64) -> i64
called by 2: dp_ipdp_via calls 2: sys_writesys_mmap
23func dp_ip(packed: i64) -> i64
called by 1: dp_via calls 2: dp_putndp_puts
31func dp_via(host: *u8, resolver: i64, label: *u8) -> i64
43func dp_multi(host: *u8) -> i64
called by 1: main calls 2: dp_putsdp_via
52func main(argc: i64, argv: *i64) -> i64
calls 2: dp_putsdp_multi