DNS resolving with cloaking-rules.txt should not be impaired if connectivity isn't esthablished yet. #2198
ghost
started this conversation in
Potential issues
Replies: 2 comments 2 replies
-
What you are describing is a captive portal. There's a dedicated configuration file in This is what you should use instead of cloaking. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Look like My solution is
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In hotels or at other public places there are wifi access points which require authentication via a web interface.
To reach this web interface one is required to visit
http://1.1.1.1
orhttp://neverssl.com
. The access point tries to hijack the web-request (can't do that to the dns-request since dnscrypt-protocol isn't vulnerable to dns-hijacking) and redirects the web-request with an 302 error code i.e. toblafoo.monzoon.net
.Dnscrypt-proxy can not resolve
blafoo.monzoon.net
by asking an uplink resolver since there is no connectivity at this point of time. However, dnscrypt-proxy should be able to resolveblafoo.monzoon.net
if specified in/etc/dnscrypt-proxy/cloaking-rules.txt
when/etc/dnscrypt-proxy/cloaking-rules.txt
is specified and enabled in/etc/dnscrypt-proxy/dnscrypt-proxy.toml
.blafoo.monzoon.net
webserver is reachable with curlhttp://<IP address of blafoo.monzoon.net>
. The webserver very probably needs a header with "Host: blafoo.monzoon.net
" to allocate the wifi to the hotel or public place.Output of the following commands:
./dnscrypt-proxy -version
2.1.1
./dnscrypt-proxy -check
[empty]
What is affected by this bug?
DNS resolving before having connectivity.
When does this occur?
After dnscrypt-proxy outputs that it is up and running (and hasn't shut down to missing connectivity yet).
Where does it happen?
At hotel wlans and similiar public access points.
How do we replicate the issue?
If you are a laptop user you probably do not have to replicate that issue because you have experienced it yourself before.
Expected behavior (i.e. solution)
dnscrypt-proxy should deliver IPs from
/etc/dnscrypt-proxy/cloaking-rules.txt
without connectivity. dnscrypt-proxy should detect that connectivity is blocked. Blocked traffic should not result in time out or shut down of dnscrypt-proxy.Other Comments
I love dnscrypt-proxy. Thumbs up for the good work.
Beta Was this translation helpful? Give feedback.
All reactions