V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
fangpeishi
V2EX  ›  分享创造

whoami.fangpeishi.com

  •  
  •   fangpeishi · 2017-08-31 13:21:53 +08:00 · 1569 次点击
    这是一个创建于 2423 天前的主题,其中的信息可能已经有所发展或是发生改变。

    基于 OpenResty 的 whoami.akaimai.net 实现

    代码:whoami.lua

    dig whoami.fangpeishi.com
    

    获取 local dns 的出口 ip。

    1 条回复    2017-08-31 13:34:25 +08:00
    terrawu
        1
    terrawu  
       2017-08-31 13:34:25 +08:00
    赞一个,不过最好给 opendns 的 credit

    dig +short myip.opendns.com @resolver1.opendns.com
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2653 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:15 · PVG 12:15 · LAX 21:15 · JFK 00:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.