V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
zhangdasen
V2EX  ›  iDev

iOS 中 如何实现 Dig 命令

  •  
  •   zhangdasen · 2018-01-19 20:58:28 +08:00 · 6072 次点击
    这是一个创建于 2261 天前的主题,其中的信息可能已经有所发展或是发生改变。
    翻遍全网了,百度 谷歌 github stackoverflow 等 都没见。 有知道的吗,希望能给点思路
    4 条回复    2023-01-20 00:01:09 +08:00
    oooxxx
        1
    oooxxx  
       2018-01-19 22:04:19 +08:00
    Dig 有一堆东东。。。
    如果想发自定义 DNS lookup,可以看看这个: https://docstore.mik.ua/orelly/networking_2ndEd/dns/ch15_02.htm
    ysc3839
        2
    ysc3839  
       2018-01-20 23:11:39 +08:00
    dig 不是开源的吗?你说搜不到的意思是你要直接能在 iOS 下运行的 dig ?
    id0096
        3
    id0096  
       2021-08-13 14:18:37 +08:00
    可以先安装 BIND DNS Server 然后把 dig 拿出来
    # apt-get install bind
    # cat > /etc/resolv.conf
    nameserver 8.8.8.8
    ^D

    # cp /usr/bin/dig /usr/bin/dig_
    # cp /usr/bin/nslookup /usr/bin/nslookup_
    # cp /usr/bin/host /usr/bin/host_
    # apt-get remove bind
    # mv /usr/bin/dig_ /usr/bin/dig
    # mv /usr/bin/nslookup_ /usr/bin/nslookup
    # mv /usr/bin/host_ /usr/bin/host

    参考: https://forums.modmy.com/3rd-party-apps-requests-f32/736743-no-dns-utils.html
    strp
        4
    strp  
       2023-01-20 00:01:09 +08:00 via iPhone
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2952 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 14:01 · PVG 22:01 · LAX 07:01 · JFK 10:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.