【发布时间】:2017-06-03 23:59:44
【问题描述】:
当用户查询一个不存在的域名(例如http://www.not-exist-website.com/)时,是否可以使用dnsmasq将其解析为本地IP?
另外一种情况,当dnsmasq无法解析请求域名时(如中国http://www.google.com/),是否可以使用dnsmasq解析到本地IP?
PS:
不知道在实现上与上述情况是否有区别。
我正在开发使用 dnsmasq 作为本地 DNS 服务器的 OpenWRT 路由器。
本地 IP 运行托管本地主页的 nginx 服务器。
【问题讨论】:
标签: redirect nginx dns openwrt dnsmasq