smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

[Question] How to block canonical name

Open rapdodge opened this issue 9 months ago • 5 comments

Hello there,

I have a question about canonical name, so, there is an DNS that using canonical name to do blocking site like this screenshot down below:

Image

How to just blacklist canonical name to certain domain or subdomains? Because I've already adding ignore rules like this screenshot down below:

Image

BR,

rapdodge avatar Feb 22 '25 04:02 rapdodge

The current version does not support cname cloaking protection feature, the consideration was to worry about the performance impact, and the popular adblock list will add all domain names, so there was no support.

Maybe can add an cname cloaking protection ​​function switch and turn it on if needed.

currently you need to block the main domain.

pymumu avatar Feb 22 '25 10:02 pymumu

The current version does not support cname cloaking protection feature, the consideration was to worry about the performance impact, and the popular adblock list will add all domain names, so there was no support.

Maybe can add an cname cloaking protection ​​function switch and turn it on if needed.

currently you need to block the main domain.

I've already block the main domain

address /aduankonten.id/#

Is there anything that could I do?

rapdodge avatar Feb 22 '25 10:02 rapdodge

are you menas force-no-CNAME yes

PikuZheng avatar Apr 05 '25 02:04 PikuZheng

are you menas force-no-CNAME yes

I'm not really sure, but I'll try that later...

rapdodge avatar Apr 05 '25 02:04 rapdodge

https://github.com/pymumu/smartdns/issues/1743#issuecomment-2130430853 fyi

translated by google:

The situation you are talking about occurs when the smartdns subordinate is not the end user but another dns server. According to the RFC specification, the dns server will initiate two queries. The first query is for the A record. If the upstream returns CNAME and A records, the second query should use CNAME to query the AAAA record again. However, when the end user queries, it will query the A+AAAA record, so there will be no second query using CNAME.

Configure force-no-CNAME yes to make smartdns not return cname when answering (this is not in compliance with the RFC). At this point the client will use the original domain name to initiate an AAAA query.

Or just smartdns for end users, not forwarder.

PikuZheng avatar Apr 05 '25 02:04 PikuZheng