JavaScript and Web Development

Stop Always Using Hosts Files for Web Projects

30 July 2014 - Quick Tip - James Brown - Comments Off on Stop Always Using Hosts Files for Web Projects

Let’s face it, there aren’t many times that we aren’t connected to the Internet while developing web projects. Shoot, I’ve even deployed entire sites from an airplane. Then why is one of the first steps to always setup a URL in your hosts file pointing to

While you can certainly do this, I would recommend starting to put in an A record in your DNS instead. This will enable other developers on your project to quickly get up and running while reducing another step. For example, try pinging the following domain name: You’ll see that it resolves to

While this might seem like a seemingly trivial tip, anything you can do to reduce the barrier to entry for working on your project is certainly worth doing.


Comments are closed.