originally terminal display is computer name, results these two days show as Bogon, a check bogon this word is virtual, hypocritical meaning. Check it out. The terminal will first query the DNS server for the direction of the local IP resolution results, if the query does not display the computer name. and because our DNS incorrectly returns the NS query result that holds the reverse of the address back to Bogon. Where Bogon should be used to refer to a false IP address rather than a reserved IP address. As a result, there is a phenomenon that occasionally prints Bogon's strange name as a computer name. So how do we let the terminal show only the computer name we want and not always return the results from DNS?
There are two methods:
One. Set DNS as Google's DNS server address 8.8.8.8
Two. Set up at the terminal
sudo hostname your-desired-host-name
sudo scutil--set localhostname $ (hostname)
sudo scutil--set HostName $ (HostName)
The mysterious Bogon in the Mac terminal