Use any external DNS
-
On Captive Portal (CP), I would like to redirect any request for DNS (even if the user has defined only the DNS on your connection) to the localhost (127.0.0.1).
So even if the user has defined an external server, like Google or OpenDNS will be redirected to the login page.I fond the file captiveportal.inc inside the /etc … however, did not know where and what to put ind this file...
can Anyone helpme with this rule?
Thanks
-
don't put it in there, you can use port forwards to redirect DNS.
-
@cmb:
don't put it in there, you can use port forwards to redirect DNS.
Ok, but the captive portal rules come before the port forward rules, right? so if I create a rule, the unauthenticated user don't use this created rules before the login…
and the redirection to the login page don't work! -
@cmb:
don't put it in there, you can use port forwards to redirect DNS.
Would you provide an example please?