V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dsn93
V2EX  ›  问与答

用个人域名解析内网 IP

  •  
  •   dsn93 · 2021-07-21 16:52:02 +08:00 · 1364 次点击
    这是一个创建于 982 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

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

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

    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3587 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:30 · PVG 18:30 · LAX 03:30 · JFK 06:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.