Skip to content
This repository has been archived by the owner. It is now read-only.
No longer maintained
Shell Makefile
Branch: master
Clone or download
Latest commit fd28931 May 7, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc Add pollution list Feb 5, 2015
files bump to 2.73rc7 May 7, 2015
patches bump to 2.73rc7 May 7, 2015
.gitignore regular updates Aug 3, 2014
Makefile bump to 2.73rc7 May 7, 2015 update README Jan 23, 2015

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-
    cd OpenWrt-SDK-ar71xx-*
    # 下载 Patch & Makefile
    git clone package/dnsmasq
    # 选择要编译的包 Base system -> dnsmasq
    make menuconfig
    # 开始编译
    make package/dnsmasq/compile V=99
  • 其他平台将 Patch 应用到 dnsmasq 源码后编译

    # 下载代码
    git clone
    # 打 Patch
    tar xzf dnsmasq-2.72.tar.gz
    cd dnsmasq*
    patch -p1 < ../openwrt-dnsmasq/patches/111-feature-enhancement.patch
    # 开始编译


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
You can’t perform that action at this time.