You’ll find hosts in Mac OS X is stored at /private/etc/hosts but it can also be accessed at the more traditional location of /etc/hosts.That said, if you’re looking to edit hosts, you’ll want to target the file located in /private/etc/ though.You can verify your hosts modifications immediately with ping, Safari, or any other network app.Changes take effect immediately though some adjustments may need to be accompanied by a DNS flush which can be done with the following command in mac OS 10.12 through OS X 10.9: When flushing DNS cache with that command you will need to enter the admin password.This topic is intended to address a specific issue identified by a Microsoft Baseline Configuration Analyzer or Best Practices Analyzer scan.You should apply the information in this topic only to computers that have had the DNS Microsoft Baseline Configuration Analyzer or DNS Best Practices Analyzer run against them and are experiencing the issue addressed by this topic.
This guide will show you exactly how to edit the hosts file in Mac OS.
this issue happens usually when you're working on Win Vista/7 with UAC turned on.
*** on Win8 you can't just edit the file and save it on it's original location. later replace the original file with the new one you saved on the desktop using the file explorer's Copy-Paste.
The HOSTS file is a text file, one that does not have a file extension. The changed HOSTS file will replace successfully the original, and now, if you ping “kuku” you will get the corresponding IP address.
It contains lines of text that are made of IP addresses followed by one or more host names or fully qualified domain names (FQDNs).