Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki dnsr方案 自定义 DNS 中chinadns-ng 的参数是不是有问题? #246

Closed
xtccc opened this issue Sep 15, 2023 · 1 comment
Closed

Comments

@xtccc
Copy link
Contributor

xtccc commented Sep 15, 2023

这个是原始的配置,我测试了无法启动

报错
tail: /var/log/chinadns.log: 文件已截断[opt_parse] non-option argument: sstp_white,sstp_white6

    elif is_chnroute_mode; then # 白名单 (ignlist,chnlist,chnroute) + 黑名单 (gfwlist)
        pid_chinadns=$(
            trap "" CHLD # 避免僵尸进程
            chinadns-ng $chinadns_arg \
            -m chnlist.txt,<(list_ext_domain ignlist.ext) \
            -g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
            -a sstp_white,sstp_white6 \
            -A sstp_black,sstp_black6 \
            -4 sstp_white -6 sstp_white6 \
            </dev/null &>/var/log/chinadns.log &
            echo $!

我根据现有的ss-tproxy脚本中的参数, 去除了-a 后面的sstp_white,sstp_white6 就可以启动了
是不是原页面的参数没有被更新? 我改了以后是这样的

 elif is_chnroute_mode; then # 白名单 (ignlist,chnlist,chnroute) + 黑名单 (gfwlist)
        pid_chinadns=$(
            trap "" CHLD # 避免僵尸进程
            chinadns-ng $chinadns_arg \
            -m chnlist.txt,<(list_ext_domain ignlist.ext) \
            -g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
            -a \
            -A sstp_black,sstp_black6 \
            -4 sstp_white -6 sstp_white6 \
            </dev/null &>/var/log/chinadns.log &
            echo $!
 chinadns-ng  --version
ChinaDNS-NG 2023.05.08 <https://github.com/zfl9/chinadns-ng>
@xtccc
Copy link
Contributor Author

xtccc commented Sep 15, 2023

发现chinadns-ng不是最新版本,我更新了一下
最新版使用 -a sstp_white,sstp_white6 \ 是可以的
chinadns-ng --version
ChinaDNS-NG 2023.06.01 https://github.com/zfl9/chinadns-ng

@xtccc xtccc closed this as completed Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant