On Fri, 2015-10-16 at 16:52 +1100, Craig McQueen wrote: > So the patch would need to be improved as follows: > > * Check that the query first question is for an A record, and only > send an A record if so. > * Calculate the correct length of the query header and question > record(s), in order to position the answer in the correct location in > the response. > * Calculate the correct total length of the response. > * Consider whether an "OPT" or other additional record should be > copied into the answer > * Consider how to handle a query with more than one question.
Let's attack the captive portal situation by redirecting traffic from the hosts to local ports using netfilter. It's a much more elegant and modular solution than to modify DNS replies from ConnMan. Cheers, Patrik _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman