Editing The Mac Hosts File

hosts — host name data base

The hosts file contains information regarding the known hosts on the network. For each host a single line should be present with the following information:


Editing the hosts file in your favorite – available macOS Text editor
sudo open -a TextEdit /etc/hosts
sudo open -a BBEdit /etc/hosts

This is a retail macOS Catalina’s Host file (prior to custom editing)
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
## localhost broadcasthost
::1 localhost

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Share via
Copy link