Closed 4ft35t closed 6 years ago
opkg install China*.ipk
root@LEDE:~# wget http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk
Downloading 'http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk'
Connecting to 216.105.38.10:80
Writing to 'ChinaDNS_1.3.2-6_x86_64.ipk'
ChinaDNS_1.3.2-6_x86 100% |*******************************| 26171 0:00:00 ETA
Download completed (26171 bytes)
root@LEDE:~# sha256sum ChinaDNS_1.3.2-6_x86_64.ipk
0ea7cdc4e3b142b94125bccf2fb57fe1205259dc1a8910f5ef7df85185962076 ChinaDNS_1.3.2-6_x86_64.ipk
root@LEDE:~# tar zxf ChinaDNS_1.3.2-6_x86_64.ipk
root@LEDE:~# tar zxf data.tar.gz
root@LEDE:~# usr/bin/chinadns
Fri May 11 11:53:24 2018 CHNROUTE_FILE not specified, CHNRoute is disabled
Fri May 11 11:53:24 2018 chinadns.c:597 bind: Address in use
Fri May 11 11:53:24 2018 Can't bind address 0.0.0.0:53
root@LEDE:~# ls -al usr/bin/chinadns
-rwxr-xr-x 1 root root 20492 Apr 14 21:40 usr/bin/chinadns
root@LEDE:~# sha256sum usr/bin/chinadns
20977dd69a06a2430f08ecd39caa146a79a9635f6c5f72ed13f035655f4e4590 usr/bin/chinadns
sha256sum 值是一样的,不同之处在于你的环境 LEDE,我的是
CHAOS CALMER (15.05, r46767)
用 http://openwrt-dist.sourceforge.net/auto_install.sh 自动安装的。
@4ft35t 15.05 使用的是 uClibc 库,你需要使用 http://openwrt-dist.sourceforge.net/legacy/base/x86_64/ 下的 ipk
http://openwrt-dist.sourceforge.net/packages/base/ 下面的是给 17.01 及以上版本使用的(musl 库)。
http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk 的 chinadns 文件无法执行
http://openwrt-dist.sourceforge.net/archives/ChinaDNS/1.3.2-6/OpenWrt/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk 可以正常执行