The mysterious Bogon in the Mac terminal

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.