---

How to Setup Local DNS Using /etc/hosts File in Linux

Tecmint: DNS (Domain Name System or Service) is a hierarchical decentralized naming system/service that translates domain names into IP addresses on the Internet or a private network and a server that provides such a service is called a DNS server.

This article explains, how to setup a local DNS using the hosts file (/etc/hosts) in Linux systems for local domain resolution or testing the website before taking live.

Get the Free Newsletter!

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