![]() 127.0.0.1 localhost).Īppend your new mappings underneath the existing ones. is located at /etc/hosts, which is a symbolic link to /private/etc/hosts Editing the hosts fileĮditing the hosts file in Mac OS X is a pretty easy task, especially if you are familiar with the terminal.ġ Open the Terminal.app Press ⌘-space and start typing terminal, or navigate to: Applications ➤ Utilities ➤ TerminalĢ Open the hosts file Enter the following command in Terminal to open hosts in a text-editor:Įnter your (admin) user password when prompted.ģ Edit the hosts file The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (one per line), entered as IP address followed by one or more hostnames (e.g.is checked before the active network connection's DNS servers. ![]() is a text file that maps hostnames to IP addresses.doesn't have an extension, its just called hosts.
0 Comments
Leave a Reply. |