DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
dns_resolver.h File Reference

DNS resolver with answer verification (DETWS_ENABLE_DNS_RESOLVER). More...

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

DNS resolver with answer verification (DETWS_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).

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file dns_resolver.h.