Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

documentation in example-blocked-names.txt #2787

Philippe-Cmoi started this conversation in Ideas
Discussion options

Hello,

The file example-blocked-names.txt states :

## *.example.com | matches example.com and all names within that zone such as www.example.com
## example.com | identical to the above

but this is not completly true when the query concern a CNAME.

For example, this filter in the blocklist :
facebook.*
block queries for facebook.com but not queries for www.facebook.com or connect.facebook.net :

$ host facebook.com
facebook.com host information "This query has been locally blocked" "by dnscrypt-proxy"

$ host www.facebook.com
www.facebook.com is an alias for star-mini.c10r.facebook.com.
star-mini.c10r.facebook.com has address 157.240.14.35

$ host connect.facebook.net
connect.facebook.net is an alias for scontent.xx.fbcdn.net.
scontent.xx.fbcdn.net has address 31.13.69.13

This filter (in the blocklist) :
*.facebook.*
block queries for both facebook.com, www.facebook.com and connect.facebook.net.

If I understand correctly, this is the intented operation. But example-blocked-names.txt could be more precise.

Anyway... thanks for dnscrypt-proxy, it is really super useful.

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

In addition to the documentation, the example-blocked-names.txt file says:

ads.* | matches anything with an "ads." prefix
*sex* | matches any name containing that substring

which seem to match the two examples you gave.

You must be logged in to vote
3 replies
Comment options

Thanks for your reply.

Yes, you are right, *facebook* also blocks the three requests.
My concern is about the "example.com | identical to the above" : I was surprised to see successfull requests to connect.facebook.net despite facebook.* in the blocklist ; it took me some time to understand how it works...
Maybe :
## example.com | identical to the above, except when example.com is an alias/cname
can help the beginner.

Comment options

This is unrelated to CNAMEs.

facebook.* matches anything with a facebook. prefix.

connect.facebook.net doesn't start with facebook.

Comment options

Gasp... I got the examples completly wrong.
Thanks for your explanations, I finallly see my mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /