NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.44k stars 13.64k forks source link

Package request: smartdns-rs #342484

Open eqfae opened 2 days ago

eqfae commented 2 days ago

Project description

Metadata


Add a :+1: reaction to issues you find important. 性能比c好 https://github.com/mokeyish/smartdns-rs/issues/80#issuecomment-1492815278 我希望用其替代系统默认的解析 绑定到53端口 Better performance than c https://github.com/mokeyish/smartdns-rs/issues/80#issuecomment-1492815278 I'd like to use it instead of the system's default parsing, which is bound to port 53.

eqfae commented 2 days ago

目前配置 bind :54

bind [::]:54

这两个一起使用会报错

这里没有绑定到53 因为所在地有网络封锁 通过openwrt-passwall分流

Current configuration bind :54

bind [::]:54

Using these two together gives an error. It's not bound to 53 because the location is blocked by openwrt-passwall.

# 在本地 53 端口监听
bind :54
bind :55 -no-rule-addr -no-speed-check -group world
# bind [::]:54

cache-size 52428800
serve-expired yes
serve-expired-reply-ttl 2
force-qtype-SOA 65

# log-num: number of logs, 0 means disable log
# log-level debug
# log-console yes
log-num 0

speed-check-mode tcp:443
response-mode fastest-ip
# 配置 bootstrap-dns,如不配置则调用系统的,建议配置,这样就加密了。
server https://1.1.1.1/dns-query -bootstrap-dns -exclude-default-group

# 配置国内上游服务器
server-quic 223.5.5.5

# 配置互联网上游服务器
server https://1.1.1.1/dns-query -exclude-default-group -group world

# 以 ofc 结尾的域名转发至 office 分组进行解析
# nameserver /ofc/office
# 设置域名的静态 IP
# address /test.example.com/1.2.3.5
# 自定义屏蔽
address /high-logic.com/#

# 屏蔽域名(广告屏蔽) 源自adg统计数据前列
address /aeventlog.beacon.qq.com/#
address /dataflow.biliapi.com/#
address /apd-pcdnwxlogin.teg.tencent-cloud.net/#
address /tmead.y.qq.com/#
address /apd-pcdnwxstat.teg.tencent-cloud.net/#
address /onrt-stsdk.vivo.com.cn/#
address /svideopnrt-stsdk.vivo.com.cn/#
address /svideoonrt-stsdk.vivo.com.cn/#
address /hdns.ksyun.com/#
address /apd-pcdnwxnat.teg.tencent-cloud.net/#
address /httpdns.c.cdnhwc2.com/#
address /httpdns.bcelive.com/#
address /svideoprt-stsdk.vivo.com.cn/#
address /dig.bdurl.net/#
address /adashbc.ut.taobao.com/#
address /teams.events.data.microsoft.com/#
address /umengacs.m.taobao.com/#
address /dns.weixin.qq.com.cn/#
address /android.bugly.qq.com/#
address /log.tbs.qq.com/#
address /sdkoptedge.chinanetcenter.com/#
address /slb-p2p.vcloud.ks-live.com/#
address /videoplayonrt-stsdk.vivo.com.cn/#
address /mon.zijieapi.com/#
address /wxsnsencsvp.wxs.qq.com/#
address /svideoort-stsdk.vivo.com.cn/#
address /otheve.beacon.qq.com/#
address /vi.bls.mdt.qq.com/#
address /adash.man.aliyuncs.com/#
address /h.trace.qq.com/#
address /ort-stsdk.vivo.com.cn/#
address /gdfp.gifshow.com/#
address /api-access.pangolin-sdk-toutiao1.com/#
address /mssdk.volces.com/#
address /adxlog.vivo.com.cn/#
address /ks.pull.yximgs.com/#
address /tx-ad.a.yximgs.com/#
address /ali-ad.a.yximgs.com/#
address /amdcopen.m.taobao.com/#
address /api-access.pangolin-sdk-toutiao.com/#
address /conn-service-cn-03.allawntech.com/#
address /www.pangolin-dsp-toutiao.com/#
address /log.zijieapi.com/#
address /als.baidu.com/#
address /adlog.vivo.com.cn/#
address /ulogs.umeng.com/#
address /brpnrt.stsdk.vivo.com.cn/#
address /applog.zijieapi.com/#
address /wn.pos.baidu.com/#
address /wxsnsdythumb.wxs.qq.com/#
address /appstoreort-stsdk.vivo.com.cn/#
address /conn-service-cn-04.allawntech.com/#
address /conn-service-cn-05.allawntech.com/#
address /tracking.miui.com/#
address /tools.3g.qq.com/#
address /api3.tuisong.baidu.com/#
address /stsdk.vivo.com.cn/#
address /snowflake.qq.com/#
address /hm.baidu.com/#