Moderator: igrr
// 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);
The list of supported codes is in DNSServer.h:
enum class DNSReplyCode
{
NoError = 0,
FormError = 1,
ServerFailure = 2,
NonExistentDomain = 3,
NotImplemented = 4,
Refused = 5,
YXDomain = 6,
YXRRSet = 7,
NXRRSet = 8
};
It hadn't occurred to me to play with these because my code was working on IOS, but it looks like calling:
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
may help with other OSes.
But in theory using "*" should never return error, since all domains are considered the APs IP
I tried returning a http 302 response. This didn't make a difference. Browsing any http address in Chrome redirects to the portal page. Ok. That sort of worked before.
Can anyone describe what the process is like on Android with a proper, working portal?
https://github.com/reischle
http://www.areresearch.net/
http://youtube.com/AReResearch