Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to locate and edit the host file on Windows
  • Screenshot 2020 11 09 at 11.26.54
    The logon attempt failed for the remote desktop connection Windows Server
  • feature image
    How to Configure Advanced PAM in Linux Linux
  • Screenshot 2020 05 24 at 22.40.50
    The security database on the server does not have a computer account for this workstation trust relation [Part 1] Windows Server
  • windows 10 technical preview windows 10 logo microsoft 97543 1920x1080
    Disable the sleep mode in Windows to never turn off the display Windows
  • VBR upgrade to 12.3.1
    Upgrade VBR to 12.3.1: Setup detected inconsistent configuration Backup
  • FEATUREIMAGE
    How to work with Azure Cognitive Service AWS/Azure/OpenShift
  • ztre23fsas
    Grant or Deny Microphone Access on Mac Mac
  • ad
    Service and Network Port requirements for Active Directory Windows

How to locate and edit the host file on Windows

Posted on 06/04/202008/03/2023 Christian By Christian No Comments on How to locate and edit the host file on Windows

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. 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. 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. In this guide, you will learn to locate and edit the host file on Windows. 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.

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.

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

Rate this post

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

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
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

  • Update Wampserver
    How to update WampServer to Latest Version Web Server
  • Manually resize your partition
    KB5034439 Windows Update Error: Resize WinRE Partition Windows Server
  • Ping commands
    Ping from Source IP Address from all environments Mac
  • Screenshot 2020 05 19 at 02.57.10
    Create Central Store for Group Policy Administrative Templates Windows Server
  • RDP Certificate Issues
    Connecting to the RDP host: Fix the Certificate could not be verified back to the root certificate Mac
  • Deploy BitLocker on Windows Server manually
    Install BitLocker on Windows Server via the Server Manager Windows Server

More Related Articles

Update Wampserver How to update WampServer to Latest Version Web Server
Manually resize your partition KB5034439 Windows Update Error: Resize WinRE Partition Windows Server
Ping commands Ping from Source IP Address from all environments Mac
Screenshot 2020 05 19 at 02.57.10 Create Central Store for Group Policy Administrative Templates Windows Server
RDP Certificate Issues Connecting to the RDP host: Fix the Certificate could not be verified back to the root certificate Mac
Deploy BitLocker on Windows Server manually Install BitLocker on Windows Server via the Server Manager Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Screenshot 2020 11 09 at 11.26.54
    The logon attempt failed for the remote desktop connection Windows Server
  • feature image
    How to Configure Advanced PAM in Linux Linux
  • Screenshot 2020 05 24 at 22.40.50
    The security database on the server does not have a computer account for this workstation trust relation [Part 1] Windows Server
  • windows 10 technical preview windows 10 logo microsoft 97543 1920x1080
    Disable the sleep mode in Windows to never turn off the display Windows
  • VBR upgrade to 12.3.1
    Upgrade VBR to 12.3.1: Setup detected inconsistent configuration Backup
  • FEATUREIMAGE
    How to work with Azure Cognitive Service AWS/Azure/OpenShift
  • ztre23fsas
    Grant or Deny Microphone Access on Mac Mac
  • ad
    Service and Network Port requirements for Active Directory 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,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.