pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
7.92k stars 1.05k forks source link

文档中的域名通配的问题 #1717

Open cokebar opened 2 months ago

cokebar commented 2 months ago

说明中,通配前缀是*-a.,是不是多了一个a image 因为看了源码,看起来通配应该是*-. https://github.com/pymumu/smartdns/blob/22349761ec8b35aefe1a07d0922e97ef4fb0e0c0/src/dns_conf.c#L1436-L1457

ixmu commented 2 months ago

从右到左匹配 例如 1、baidu.com,实际匹配baidu.com结尾的任何域名 2、*.baidu.com,实际匹配.baidu.com结尾的任何域名 3、-.baidu.com,实际匹配baidu.com