|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
DNS resolver with answer verification (PC_ENABLE_DNS_RESOLVER). More...
Go to the source code of this file.
DNS resolver with answer verification (PC_ENABLE_DNS_RESOLVER).
Resolves a hostname to an IPv4 address via lwIP (dns_gethostbyname, marshalled to tcpip_thread like the http_client), and classifies / verifies the answer: a remote name resolving to 0.0.0.0, the broadcast address, loopback, or a multicast address is rejected as a spoof / DNS-rebinding indicator. The classifier + verifier are pure and host-tested; the resolve is ESP32-only and blocking (call it off the request hot path).
Definition in file dns_resolver.h.