Hello guys in this guide, I am gon na tell you about How to Edit Hosts File in Mac OS X. thus read this article, step by footprint so you may understand it in a better manner.

Guide: How to Edit Hosts File in Mac OS X

The Mac hosts charge is an significant text document on Mac OS X that allows host names to be mapped to a specified IP address. While the internet has both public and private DNS servers for assigning IP addresses, the hosts file on Mac is a effective way to ignore DNS servers. When editing the Hosts file on Mac, users can manually direct a web site address to a specific IP address or block access to a web site altogether by pointing to an unused or inner IP savoir-faire. The following users will learn how to edit the Mac hosts file on OS X.

Edit Mac Hosts file with edit text

There are a count of different ways to edit the hosts file in Mac OS X. One method is to use the default Text editor feature of speech for editing Mac host files. Since the Mac hosts file is a textbook document, using TextEdit is a sufficient tool as a Mac hosts file editor. But it is important to note that TextEdit can not open the file immediately and you must copy the file to an unprotected location such as the desktop, edit it and then copy it to TextEdit to edit the hosts file on the Mac .
To find the hosts file, open Finder and blue-ribbon from Finder ’ s menu legal profession Go> Go to Folder. Type the follow location in the box and press Return .
/ private / etc / hosts
A new Finder window will open and your Mac ’ s hosts file will be selected. Click and drag it out of the Finder window and drop it on your desktop. This allows us to freely edit the file .
edit-hosts file
To open the default option Mac hosts file, just double-click and the contents of the charge will be displayed in TextEdit. By nonpayment, the hosts file is bare, as it contains only a few lines of descriptive textbook “ commented out ” with the hashish or hash ( # ) sign. The host file besides has IP values ​​for localhost and broadcast host. To edit the file, add your own rules after broadcast host .
edit-hosts file
good use of an edit hosts file on your Mac is to block access to specific websites. ( How to Block a website on Windows It is required to enter the IP address to be blocked and to assign followed by a host diagnose. In our case, we want to block YouTube. You map www.youtube.com to 0.0.0.0, which as invalid IP address will result in an error. Whenever person using the Mac tries to go to www.youtube.com, the network browser can not load the page .
Another method is to type in the IP address of a valid site alternatively of 0.0.0.0. To find the IP address of a web site, you can “ ping ” the site via Terminal. Open Terminal and type the come command, replacing “ www.website.com ” with the web site of your choice :
ping www.website.com

After the changes are made to the hosts files on the Mac, save them to the current location on the desktop. then drag the hosts file from your background back to its original location / private / etc.. If the Finder window is closed, use the Finder> Go> Go to Folder command, to reopen it .
After the hosts charge has been dropped to its original location, OS X will ask you what to do with the unmodified hosts file that is already there. Choose “ Replace ” and then enter the administrator password to authenticate the remove .
now open a vane browser to test the changes. decline changes did not occur, you may need to clear the DNS cache. For OS X Lion and OS X Mountain Lion, open Terminal and use the comply command. notice that you will need to enter your administrator password to run it :
sudo killall -HUP mDNSResponder
rather, use this command for OS X Mavericks :
dscacheutil -flushcache ; sudo killall -HUP mDNSResponder

How to Edit Hosts File in Mac OS X: benefits

  • The How to Edit Hosts File in Mac OS X tutorial is free .
  • This guide already helps so many users follow up with interest in a timely manner.
  • The price of the How to Edit Hosts File in Mac OS X guide is free.

Faq

Tutorial summary of How to Edit Hosts File in Mac OS X

In this guide, we told you about the How to Edit Hosts File in Mac OS X ; please read all steps so that you understand How to Edit Hosts File in Mac OS X in case if you need any aid from us, then contact us.

How this tutorial helping you?

so in this usher, we discuss the How to Edit Hosts File in Mac OS X, which undoubtedly helps you.

What is actual time in which this method complete?

The fourth dimension to complete the How to Edit Hosts File in Mac OS X tutorial is 10+ minutes.

What are the supported Device?

Mobile Phones

What are the supported Operating system?

Android or io

Final note

I hope you like the guide How to Edit Hosts File in Mac OS X. In case if you have any question regards this article you may ask us. besides, please parcel your love by sharing this article with your friends .
For our visitors : If you have any queries regards the How to Edit Hosts File in Mac OS X, then please ask us through the comment section below or directly liaison us.
Education: This guide or tutorial is fair for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “ How to Edit Hosts File in Mac OS X ”, then kindly contact us.
Want to add an alternate method : If anyone wants to add more methods to the lead How to Edit Hosts File in Mac OS X, then kindly contact us.
Our Contact : kindly use our liaison page regards any help. You may besides use our social and accounts by following us on Whatsapp, Facebook, and Twitter for your questions. We always love to help you. We answer your questions within 24-48 hours ( Weekend off ).
Channel: If you want the latest software updates and discussion about any software in your pocket, then hera is our Telegram channel .

Leave a Reply

Your email address will not be published.