【问题标题】:dnsmasq doesn't resolve internal IP addressdnsmasq 无法解析内部 IP 地址
【发布时间】:2014-05-12 05:50:10
【问题描述】:

我有一个 openwrt 路由器,以及一个连接到它的客户端 linux。我用

配置dnsmasq
resolv-file=/tmp/resolv.conf.auto

例如,当我在客户端使用 nslookup 时,nslookup google.com 是可以的,但 nslookup bd.ysmood.org 却是 No answer

如何让路由器正常工作?

【问题讨论】:

    标签: dns openwrt dnsmasq


    【解决方案1】:

    好的,因为 bd.ysmood.org 是一个内部 IP 地址。 dnsmasq 的rebind_protection 会使查找失败。

    编辑/etc/config/dhcp,找到该行:

    option rebind_protection 1
    

    1改成0就可以了。

    【讨论】:

      猜你喜欢
      • 2020-08-06
      • 1970-01-01
      • 2020-12-29
      • 2015-05-07
      • 1970-01-01
      • 1970-01-01
      • 2013-01-29
      • 2021-08-10
      • 1970-01-01
      相关资源
      最近更新 更多