阻止osx的hostname在DHCP时被更改
osx设置Hostname的顺序, 参考https://excitedcuriosity.wordpress.com/2007/08/24/mac-os-x-hostname-determination/ 07年的文章, 不知道还准不准
-
The name provided by the DHCP or BootP server for the primary IP address
-
The first name returned by a reverse DNS (address-to-name) query for the primary IP address
-
The local hostname (set in the Sharing pane of System Preferences)
-
The name localhost
阻止被更改
sudo scutil --set HostName myhostname