操作系统下都有hosts文件可自定单个域名指向IP,要将特定域名下所有子域名都指向特定IP就需要转发DNS服务器来解决了,Dnsmasq就是比较轻量级的一个,很多第三方路由固件都自带Dnsmasq。Dnsmasq域名泛解析配置:address=/.www.haiyun.me/8.8.8.8address=/.google.com/203.208.46.200#这样所有www.haiyun.me子域名都解析到8.8.8.8Dnsmasq禁止域名被劫持:bogus-nxdomain=8.8.8.8#8.8.8.8为劫持IP地址
阅读全文>>
https://github.com/aa65535/openwrt-dnsmasq1.卸载默认的dnsmasqopkg remove dnsmasq2.安装dnsmasq-fullopkg install http://sourceforge.net/projects/openwrt-dist/files/depends-libs/ramips/libnettle_2.7.1-1_ramips_24kec.ipkopkg install http://sourceforge.net/projects/openwrt-dist/files/depends-l...
阅读全文>>