Dnsmasq for OpenWrt
简介
本项目是 Dnsmasq 在 OpenWrt 上的移植与功能增强
当前版本: 2.72-4
预编译 IPK 下载
特性
- 添加
--ignore-address
选项, 忽略指定的 IP, 防止 DNS劫持 - 添加
--min-cache-ttl
选项, 可设置 DNS缓存最小有效期
编译
-
从 OpenWrt 的 SDK 编译
# 以 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 源码后编译
# 下载代码 wget http://thekelleys.org.uk/dnsmasq/dnsmasq-2.72.tar.gz git clone https://github.com/aa65535/openwrt-dnsmasq.git # 打 Patch tar xzf dnsmasq-2.72.tar.gz cd dnsmasq* patch -p1 < ../openwrt-dnsmasq/patches/111-feature-enhancement.patch # 开始编译 make
配置
Name | Description |
---|---|
openwrt-chinadns | ChinaDNS-C for OpenWrt |
openwrt-shadowsocks | Shadowsocks-libev for OpenWrt |
openwrt-redsocks2 | RedSocks2 for OpenWrt |
openwrt-shadowvpn | ShadowVPN for OpenWrt |
openwrt-dist-luci | LuCI Applications for OpenWrt-dist |