Re: Captive Portal or force all webcalls to ESP8266 AP IP ad
![Post Post](./styles/FLATBOOTS/imageset/icon_post_target.gif)
@blackie looks like you just confirmed it. The DNS data returned by DNSServer seems to be invalid.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
// set which return code will be used for all other domains (e.g. sending
// ServerFailure instead of NonExistentDomain will reduce number of queries
// sent by clients)
// default is DNSReplyCode::NonExistentDomain
dnsServer.setErrorReplyCode(DNSReplyCode::ServerFailure);
enum class DNSReplyCode
{
NoError = 0,
FormError = 1,
ServerFailure = 2,
NonExistentDomain = 3,
NotImplemented = 4,
Refused = 5,
YXDomain = 6,
YXRRSet = 7,
NXRRSet = 8
};
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);