background preloader

Where is my hosts file ?

Facebook Twitter

Mac OS X: How to Add Hosts to Local Hosts File. Mac OS X 10.2 or later Edit the /private/etc/hosts file.

Mac OS X: How to Add Hosts to Local Hosts File

For more information on how to use the hosts file, open Terminal and type: man hosts Note: Editing this file requires root privileges. Mac OS X 10.0 through 10.1.5 1. Mac OS X - how to update /etc/hosts. Way back in the good old days of Linux and Windows it was much easier to update my hosts file.

Mac OS X - how to update /etc/hosts

There it was, /etc/hosts or C:\windows\hosts, edit, save and the change becomes active. MacOS X is a little more complicated. Once you update /etc/hosts you’ll have to update the Netinfo Database. That’s why I’m blogging this so I’ll remember it. This page documents the steps required but the important command is this one: Modifier son fichier Hosts - La solution.