Total Pageviews

Tuesday, 6 February 2018

用命令行设置mac机器的dns server地址

networksetup -listallnetworkservices
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8
networksetup -getdnsservers Wi-Fi (验证一下,显示结果为8.8.8.8)
networksetup -setdnsservers "Wi-Fi" "Empty" # DNS 复原





http://blog.csdn.net/boarmy/article/details/51221237
http://www.dreamingfish123.info/?p=573




No comments:

Post a Comment