Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to locate and edit the host file on Windows

Posted on 06/04/202015/09/2026 Christian By Christian No Comments on How to locate and edit the host file on Windows
  1. Home
  2. Windows Server
  3. How to locate and edit the host file on Windows
Background in blue with the text 'Windows Hosts File' in red and a Windows logo graphic.

Windows includes a local ‘Hosts’ file that contains domain names and matching IP addresses, acting as a map to identify and locate hosts on IP networks. Here are some related guides: Domain Naming System: How to activate DNS over TLS in Windows 11, how to set up a third-party DNS server on a Linux Server, and how to set up a third-party DNS server on a Linux Server.

Every time you visit a website, your computer will check the host’s file first to see which IP address it connects to. If the information is not there, your internet service provider will look into the DNS for the resources to load the site. In this guide, you will learn to locate and edit the host file on Windows.

Hosts files have existed since ARPANET time and were used to resolve hostnames before DNS was introduced. These files aid in network name resolution. The syntax is consistent across all platforms. it is worth noting that, most host files will have several entries for loopback.

If you would like to create some entries or modify the entries in host files, the below steps are steps to go about it. n Windows 10 and Windows Server, the location of the host file can be found in this path

C:\windows\system32\drivers\etc\hosts

Select a Text Editor to have the host file opened. I have also created a record for test.techdirect.local. When you are done, click on save and close the text editor.

Screenshot of a Notepad window displaying a sample HOSTS file used by Microsoft TCP/IP for Windows, located in the etc folder under System32 directory. The file contains the mappings of IP addresses to host names with example entries and instructions.

That is all that needs to be done if you do not intend to use DNS for this.

I hope you found this guide very useful. Please feel free to leave a comment below.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Windows Server Tags:DNS, DNSRecord

Post navigation

Previous Post: How to perform DriveLock quick setup
Next Post: How to locate and edit the host file on macOS

Related Posts

  • ADUC Appcrash fix
    Faulting Application Name: mmc.exe: Unable to launch ADUC Windows Server
  • dns records
    What are the different types of DNS Records Windows Server
  • SystoLOCK Passwordless Authentication
    Protect your Windows Devices with MFA with SystoLOCK Security | Vulnerability Scans and Assessment
  • screenshot 2020 03 13 at 20.24.17
    How to install Cygwin packages from the command line Windows Server
  • Perform Site Maintenance or reset this site greyed out
    Fix “Perform Site Maintenance or reset this site” greyed out Windows Server
  • drivelock 1
    How to activate DriveLock License on Windows Server Windows Server

More Related Articles

screenshot 2020 04 07 at 01.42.57 How to enable Telnet in Windows 10 and Windows Server Windows Server
Extend C drive with additional Software Aomei Free Partition Manager: Fix unable to Extend Volume on Windows protected by BitLocker Windows
GPO Blocked Downloads 3 How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
DC creation as recommended by Microsoft Setup a Domain Controller as Recommended by Microsoft Windows Server
microsoft confirms some pcs freeze after windows 10 2 DHCP specific reference console icons Windows Server
View installed Updates on Windows Get lists of installed Microsoft Windows Updates Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • AGMP replacement e1778595633716
    AGMP extended support ends April 2026: Find alternative solution Windows Server
  • article 1280x720.192a2586 1 1
    How to install WSL on Windows Server Windows Server
  • How to create and delete MySQL database
    How to delete and create MySQL Databases Oracle/MSSQL/MySQL
  • hero activedirectory
    Create and find Organisation Unit paths in AD Scripts
  • redirects3endpoint
    How to redirect requests for your bucket’s website endpoint to another bucket or domain AWS/Azure/OpenShift
  • BLOG LOGO
    How to create a static pod in Kubernetes AWS/Azure/OpenShift
  • dd featured 1
    How to delete obsolete drivers from the Driver Store in Windows Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,747 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.