dsn93
V2EX  ›  问与答

用个人域名解析内网 IP

  •  
  •   dsn93 · Jul 21, 2021 · 2179 views
    This topic created in 1755 days ago, the information mentioned may be changed or developed.

    苦于家里路由器太辣鸡(Netgear R6800),给自己买的域名(a.com)增加一条 DNS 记录(mchn1.a.com)来解析内网的 IP 地址。 DNS 上的记录是这样写的 mchn1.a.com 172.16.0.44

    这个时候如果我用 nslookup 的话,他只会返回一条记录,拒绝继续解析这个地址 <Gateway> 172.16.0.1

    问下各位大佬路由器这个设置叫什么名字,能关掉么?

    6 replies    2021-07-21 17:30:23 +08:00
    Mysqto
        1
    Mysqto  
       Jul 21, 2021
    没明白 你 nslookup 查的是哪个域名?
    dsn93
        2
    dsn93  
    OP
       Jul 21, 2021
    manhere
        3
    manhere  
       Jul 21, 2021
    icmp
    LiYanHong
        4
    LiYanHong  
       Jul 21, 2021
    可以关掉,openwrt 里叫重绑定保护
    dnsmasq 这段里面的 option rebind_protection 1 改为 option rebind_protection 0
    fetich
        5
    fetich  
       Jul 21, 2021
    就是 4 楼这个了
    also24
        6
    also24  
       Jul 21, 2021
    楼上正解,另外也可以使用 --rebind-domain-ok 这个字段

    https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3207 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 00:23 · PVG 08:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.