---

How to Edit your Hosts File in Linux

The hosts file is a text file in Linux that maps hostnames with IP addresses. It has priority over the DNS resolution, so it can be used for testing applications, development, and blocking websites. There is also a hosts file in other Operating Systems, such as Windows and MacOS. However, this tutorial will show how to edit your hosts file in Linux.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis