编译时默认从 aa65535/dnsmasq 下载最新源码
-
添加
DNS 反劫持
功能, 来自 dnsmasq-chinadns -
添加
--min-cache-ttl
选项, 设置 DNS 缓存最小有效期
- 从 OpenWrt 的 SDK 编译, 预编译 IPK 下载
# 以 ar71xx 平台为例 tar xjf OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2 cd OpenWrt-SDK-ar71xx-* # 下载 Patch & Makefile git clone https://github.com/aa65535/openwrt-dnsmasq.git package/dnsmasq # 选择要编译的包 Base system -> dnsmasq make menuconfig # 开始编译 make package/dnsmasq/compile V=99
- 同样可以将 Patch 应用到 dnsmasq 后编译出其他平台的可执行文件
# 下载代码 git clone https://github.com/aa65535/dnsmasq.git git clone https://github.com/aa65535/openwrt-dnsmasq.git # 打 Patch cd dnsmasq patch -p1 < ../openwrt-dnsmasq/patches/001-feature-enhancement.patch # 开始编译 make
Name | Description |
---|---|
openwrt-chinadns | OpenWrt's ChinaDNS-C Makefile |
openwrt-shadowsocks | OpenWrt's ShadowSocks Makefile |
openwrt-shadowvpn | OpenWrt's ShadowVPN Makefile |