limbo0
V2EX  ›  macOS

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

  •  
  •   limbo0 · Oct 12, 2016 · 1503 views
    This topic created in 3544 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   ·   3310 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:29 · PVG 11:29 · LAX 20:29 · JFK 23:29
    ♥ Do have faith in what you're doing.