limbo0
V2EX  ›  macOS

坑:macos 修改/etc/resolv.conf 失效问题

  •  
  •   limbo0 · Oct 12, 2016 · 1475 views
    This topic created in 3526 days ago, the information mentioned may be changed or developed.

    修改完 /etc/resolv.conf 发现搜索域不好使,始终是 ping 不通, 但是很奇怪,host, nslookup 都可以

    这个问题一直搁置了两周,

    今天从网上找到解决问题的方法: https://github.com/michthom/AlwaysAppendSearchDomains

    原因:macos 里 dns 递归搜索使用 mDNSResponder, 而他需要参数 -AlwaysAppendSearchDomains

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3329 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.