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

whoami.fangpeishi.com

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

    基于 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   ·   实用小工具   ·   2894 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:07 · PVG 22:07 · LAX 07:07 · JFK 10:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.