code wiki / (root) / nx_netscope_diag.nx

nx_netscope_diag.nx

buildroot/runtime/nx_netscope_diag.nx

1874 B39 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic netscope
docsdependenciesstructsconstsfunctions

about

nx_netscope_diag.nx -- the ONE-COMMAND, EASY-FOR-ANYONE DNS diagnosis. Probes the (resolver x owned-domain) matrix in PARALLEL (L1.1 poll fan-in, worst-case ~one timeout not the sum) and renders the plain- language, fix-attached verdict (nx_netscope_verdict.nx) -- not a raw matrix. A non-engineer runs this and immediately sees whether their sites resolve, why not, and exactly how to fix it. Exit 0 = all clear, 2 = problem found (clig.dev, script/CI-gateable). Resolvers (Charter sec 2): GL-BE9300 192.168.8.1 (split-horizon -> NAS .8.240), ATT BGW320 192.168.1.254, Google 8.8.8.8 (public baseline). NOTE: a true per-resolver run needs Windows-native or WSL-mirrored mode; inside WSL NAT every :53 query is proxied to one resolver. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_netscope_verdict.nx nx_netscope_diag.nx

imports: nx_netscope_verdict.nx

imported by: nobody (leaf or entry point)

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

main nx_dns_probe_matrix_parall sys_mmap sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nxns_pollfd_set_fd nxns_pollfd_set_events nx_dns_build_query nx_dns_put_u16_be nx_dns_encode_name sys_socket sys_sendto sys_close nxns_pollfd_get_fd sys_poll nxns_pollfd_get_revents sys_recvfrom nxns_dissect_response nx_dns_get_u16_be sys_mmap ↻ nx_dns_parse_response_a nx_dns_get_u16_be ↻ nx_dns_skip_name nxns_is_rfc1918 nx_netscope_verdict_all nx_netscope_verdict_host nxv_host_category nx_dns_host_would_poison nxv_count_ok nxv_cell nx_dns_host_hairpin_risk nxv_cat_severity nxv_w nxv_sym nxv_w ↻ nxv_cat_name nxv_w ↻ nxv_cell ↻ nxv_ip

structs

none

consts

none

functions

19func main() -> i64