V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Jan 19, 2018 · 7077 views
    This topic created in 3023 days ago, the information mentioned may be changed or developed.
    翻遍全网了,百度 谷歌 github stackoverflow 等 都没见。 有知道的吗,希望能给点思路
    4 replies    2023-01-20 00:01:09 +08:00
    oooxxx
        1
    oooxxx  
       Jan 19, 2018
    Dig 有一堆东东。。。
    如果想发自定义 DNS lookup,可以看看这个: https://docstore.mik.ua/orelly/networking_2ndEd/dns/ch15_02.htm
    ysc3839
        2
    ysc3839  
       Jan 20, 2018
    dig 不是开源的吗?你说搜不到的意思是你要直接能在 iOS 下运行的 dig ?
    id0096
        3
    id0096  
       Aug 13, 2021
    可以先安装 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  
       Jan 20, 2023 via iPhone
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2468 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 573ms · UTC 07:23 · PVG 15:23 · LAX 00:23 · JFK 03:23
    ♥ Do have faith in what you're doing.