host files

I had online support from adobe to solve an issue with my account and software was used so he could access my computer. One of the things he did was etc/host copy the file to desktop, delete everything and replace the empty file with the original. i wonder if this is a problem or risk. If i run terminal  sudo nano /etc/hosts it is empty

Posted on Dec 12, 2022 6:49 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 12, 2022 7:13 AM

Here is the default contents of my /etc/hosts file on Ventura 13.0.1:


##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost 
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost


In the modern age of Dynamic Host Configuration Protocol (DHCP) where IP addresses are automatically assigned to the Mac from your router, you only need the above in the /etc/hosts file. It should not be empty though. The separation of the left content from the right content may be spaces or tabs.

5 replies
Question marked as Top-ranking reply

Dec 12, 2022 7:13 AM in response to bram_v_s

Here is the default contents of my /etc/hosts file on Ventura 13.0.1:


##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost 
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost


In the modern age of Dynamic Host Configuration Protocol (DHCP) where IP addresses are automatically assigned to the Mac from your router, you only need the above in the /etc/hosts file. It should not be empty though. The separation of the left content from the right content may be spaces or tabs.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

host files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.