Today we are going to edit hosts file on our Operating System (, and ). In each and every Operating system a host file exists, which is used for mapping an IP address to a Hostname, which is somewhat similar to a DNS server, so I like to call my Hosts file a local DNS server, because it overrides the DNS servers and points to the IP address we provided for the hostname. What is hosts file?
Another way for editing hosts file on Mac is via apart from using Mac terminal text editor is TextEdit. Navigate to Finder > Go > Go to Folder Now type /private/etc/hosts and tap on Go. Burn dvd free software for mac. Modify your hosts file (Mac, Linux, Windows) For accessing your project / domain you need to setup a host entry which points to 127.0.0.1. Editing the hosts file on Mac. Whether you want to control network traffic or access to websites or thwart spyware, you will need to edit Hosts file on Mac. Thanks to Terminal application, configuring the host file is a bit easier on macOS.
Hosts file is a Plain Text file that is used by Operating Systems (,, Mac and etc) to map an IP address to an Hostname. It is mostly called hosts but in earlier versions of some Operating Systems it was also named as hosts.txt How to edit hosts file? • Go to the place where hosts file is placed i.e. For Linux and Mac /etc/hosts and for Windows C: Windows System32 Drivers etc hosts.

Location of hosts file in Windows 8 for other Operating Systems refer here for • Open it in your favorite Text Editor (Notepad) and you will see something like this: ## # Host # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost::1 localhost • Ignore the Comments ( # sign is used for comments in hosts file) and come down to 127.0.0.1 localhost where 127.0.0.1 is the IP Address and localhost is the Hostname, which means that localhost will point to 127.0.0.1 IP Address. • Now lets add a new Entry, go to a new line (by Pressing Enter) and type the IP Address and hostname.
For me it is this 198.46.81.165 best2know.info The entry is pointing to the new server of Best 2 Know at, instead of the old one. • Now just save the file ( Ctrl + S) you can check if the changes are working or not by going to the and typing the hostname or by using command in Command Prompt, like ping best2know.info I would recommend using ping command for testing as you can also view which IP address it is the Hostname pointing to. Buy product key for windows 7 home premium. Now after learning edit hosts file, lets learn its uses. What are the uses of hosts file? Well below are the 2 main reasons I use hosts file.
When I move my Websites to a different Web server or Company. Recently I moved all my websites to and after moving files and changing name servers, I had to view whether the is working properly or not? At that time Hosts file came into handy and I was able fix all problems before visitors came to the website. It was a simple line in hosts files, that solved the problem.
198.46.81.165 best2know.info Blocking a Specific website or host hosts file is also most popularly used to block access to specific site, like to avoid getting caught using a pirated softwares, some people block the Hostname of the Organization that made that software, So the serial key used to register it cannot be detected as a fake. If you want to block a website, just make map it to 127.0.0.1 IP address i.e.
127.0.0.1 example.com Do you know some more uses of hosts file, share it with us by using comments. 
Making changes to the HOSTS file is generally something users either do regularly, or they’ve never touched it. For those of you not familiar with the HOSTS file it is basically a way to override the IP address that a domain/address resolves to.
This is a great way to test out DNS changes on your machine before you make any updates at your DNS provider. It’s also a way to access machines in your house without having to use the IP address. The problem with the HOSTS file is that it can be a pain to make updates to, but there are tools that try to make it easier. We’ve already that will help users make those changes, and today we are talking about a free Mac app called that does the same sort of thing. The thing I really like about this app is that it lets you maintain multiple hosts files, and you can choose which one you want to be activated. To do that you’ll just need to use the few buttons that are on the toolbar create a new HOSTS file, and then click the Activate button to make that the active HOSTS file on your machine.
By creating new HOSTS files that means at any point down the road you can switch back to the original in just a couple of clicks. In case you’re wondering I’ve been using this on OS X 10.8 Mountain Lion and it’s been working fine. (Mac only; Freeware).