code wiki / _hdl_build / nx_dns_probe.nx
nx_dns_probe.nx
buildroot/runtime/_hdl_build/nx_dns_probe.nx
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
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
structs
| none |
consts
| 10 | const K_MAGIC_151060489: i64 = 151060489 |
functions
| 12 | func 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 } |
| 13 | func 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 |
| 14 | func dp_putn(v: i64) -> i64 |
| 23 | func dp_ip(packed: i64) -> i64 |
| 31 | func dp_via(host: *u8, resolver: i64, label: *u8) -> i64 called by 1: dp_multi calls 6: sys_now_realtime_secnx_dns_resolve_a_recorddp_slendp_putsdp_putndp_ip |
| 43 | func dp_multi(host: *u8) -> i64 |
| 52 | func main(argc: i64, argv: *i64) -> i64 |