cresky-github

Results 72 comments of cresky-github

> @cresky-github 兄弟哪里有适用于 smartdns 的 geosite:cn 下载,v2ray 貌似不能用吧。 V2Ray 直接使用 geosite:cn。 SmartDNS 使用 其文本。 但,需按SmartDNS语法转写。

> > SmartDNS 使用 其文本。 但,需按SmartDNS语法转写。 > > @cresky-github 写了个转换的命令,不过有点慢 > > ```shell > curl https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/direct-list.txt\ > | grep -v 'regexp:' \ > | sed 's/full://'\ > | xargs -i...

> > > > SmartDNS 使用 其文本。 但,需按SmartDNS语法转写。 > > > > > > > > > @cresky-github 写了个转换的命令,不过有点慢 > > > ```shell > > > curl https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/direct-list.txt\ > >...

> > > > > > SmartDNS 使用 其文本。 但,需按SmartDNS语法转写。 > > > > > > > > > > > > > > > @cresky-github 写了个转换的命令,不过有点慢 > > >...

> > > ```shell > > > full: > > > ``` > > > > > > /full:/d > > 是错误的处理方法, 正确的方法应该是 s/full://g; > > 为什么?没明白,按行删除不行? 当然不能删除行, 那行有域名 删除"full:"就行了

![image](https://user-images.githubusercontent.com/52242290/194703034-d94b0de1-63d5-498d-9724-e908c0e0b5f3.png) 顺便多一嘴, 防止 DNS 泄漏,很简单,只用一个上游就行了, 国外组,别作死,用国内DNS

> 新版本的话,用domain-set可以直接使用单行域名。 转换命令 > > ``` > grep -v "full:" direct-list.txt | grep -v "regexp:" > direct-list-smartdns.txt > ``` > > 配置: > > ``` > domain-set -n direct -f...

> > > 新版本的话,用domain-set可以直接使用单行域名。 转换命令 > > > ``` > > > grep -v "full:" direct-list.txt | grep -v "regexp:" > direct-list-smartdns.txt > > > ``` > > > >...

> 总结一下那就是 **旧版** > > ```shell > curl -s https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/direct-list.txt \ > | sed 's/full://g;/regexp:/d;s#(\S*)#nameserver /\1/directIsp#' > /etc/smartdns/direct.conf > ``` > > 引用: > > ``` > conf-file /etc/smartdns/direct.conf >...

其实,还可以有更简单的方法的处理的。 就是 不用端口分组,弄一个国外域名表,大概2万多行(网上有),用国外DNS解析。表外的域名默认用国内DNS解析。