Skip to content

How To Blog

how to

  • Top 6 Most Underrated Anime Series technology
  • Should you charge your phone overnight Smartphones
  • How to Hide Your “Last Seen” Status on WhatsApp Computer Tips
  • 5 Best Sites To Play Scrabble Online With Friends Cool Websites
  • Change Measurement Units in Microsoft Word Office Tips
  • 6 Best FTP Clients For Android How-To
  • Tab Key Not Working in Windows 7 Help Desk
  • How to Fix MBR in Windows XP and Vista How-To

How to Add a Local DNS Lookup to Hosts File

Posted on October 7, 2020 By blog_786 No Comments on How to Add a Local DNS Lookup to Hosts File

When you enter a website URL into your browser’s address bar, the request is sent to a type of internet server known as a domain name server . This server takes the URL you entered and then checks which IP addresses are listed for the real servers hosting the content you are looking for.

The problem is, if there is something wrong with the nameserver, you won’t be able to access the site you want. Even worse, if the name server has been hacked, you may end up on a fake site! The good news is that you can manually specify the relationship between specific IP addresses and website addresses by simply adding a local DNS lookup to your hosts file.

How to Add a Local DNS Lookup to Hosts File

What is a hosts file?

The hosts file is easy to understand. It’s just a text file. By the way, this is why you should just edit the file with something like Notepad, which won’t try to change the format or add additional formatting to the file.

Inside the hosts file, you can add a list of IP addresses along with the web address that the IP address should point to. You can combine any IP address and web address, even if they don’t actually match. You can have the actual IP address of Bing.com point to Google.com if you like.

How to Add a Local DNS Lookup to Hosts File

Windows always checks the hosts file first before sending a request to the name server. Therefore, if the address that you enter in the browser is listed in the hosts file, you will be redirected to the IP address specified in the file.

What is local DNS lookup?

The process described in the previous paragraph is a local DNS lookup. Your computer looks up the IP address from your local drive on its own, without having to contact an external server. It is so simple!

– /

Why add local DNS lookup to the hosts file?

There are several reasons why you might want to add a local DNS lookup to your hosts file. We already mentioned several reasons at the beginning of the article, but people have found many creative ways to use this simple feature.

One of the important reasons for adding entries to the hosts file is speed. It will always be faster to do local searches than to go to an external server. Especially if this server is unreliable. Placing the most important or most frequently used sites in the hosts file means you no longer have to worry about the DNS service causing access problems.

How to Add a Local DNS Lookup to Hosts File

You can also use the hosts file to block sites that you don’t want this computer to have access to. All you have to do is specify an IP address in the hosts file for that site, which either leads nowhere or points to a secure IP address. Common redirects include 0.0.0.0 and 127.0.0.1. This is the so-called “loopback” address.

If you have local devices like routers, IP cameras, network storage, etc., you can use the hosts file to give their IP addresses easy-to-remember names.

Using Hosts Premade Files

If adding dozens or even hundreds of sites to the hosts file seems quite tedious, then you are not alone! The good news is that there are tons of places on the internet where you can find ready-made lists that you can simply copy and paste into your own hosts file.

The main problem is that malicious redirects can be hidden in these lists. This means that you either need to check each IP address manually or make sure you trust the source of the list.

Editing hosts file in Windows 10

Since the hosts file leaves room for trouble, you can’t just open it and edit it. You will need administrator rights on your computer to make changes. Before making any changes to the hosts file, we strongly recommend that you copy and paste its original content into another text file in case something goes wrong!

To change the hosts file in Windows 10, follow these steps:

  1. Open the Start menu and type Notepad.

  1. When Notepad appears, right-click it and choose Run as Administrator.

How to Add a Local DNS Lookup to Hosts File

  1. n Notepad, click Open, navigate to c: Windows System32 Drivers etc hosts and open the hosts file there. Remember to change the file type to All Files.

How to Add a Local DNS Lookup to Hosts File

  1. You should see this default hosts file from Microsoft.

How to Add a Local DNS Lookup to Hosts File

  1. Don’t worry about text already in the document. You can just leave it as it is and add your entries to the end of the file. Any line beginning with the “#” character is treated as a comment and is not used for name lookups.

How to Add a Local DNS Lookup to Hosts File

It’s easy to add a local search to a list. Just write down the site’s IP address, space and then the site’s address.

Remember to save what you added when you close the file. That’s all you need to do! Now your computer will skip the entire DNS lookup process when accessing the sites you specify.

How to find a website’s IP address

What if you don’t know the IP address of the site you want to add to the hosts file? It’s actually pretty easy to find the IP address of a site using the command line in Windows 10 Here’s how to do it:

  1. Open the start menu and type “cmd”.
  1. After opening a command prompt, enter “tracert” followed by a space and the site to test. In this example, this is google.com. Then press the Enter key on your keyboard.

  1. Here you will see the site’s IP address. Now you can use this address in the hosts file.

How to Add a Local DNS Lookup to Hosts File

The most hosts

Who would have thought that such a small text file hidden deep in the Windows folder could be so useful? You are now a true local search guru, controlling how your computer accesses websites.

–

Networking

Post navigation

Previous Post: How To Teach An Online Course
Next Post: The 8 Best Online Sources For Green Screen Special Effects

Related Posts

  • Five Things You Should Do After Plugging in Your New Cisco Switch Networking
  • How to Avoid and Resolve DNS Outages Networking
  • What Is NAT, How Does It Work, and Why Is It Used? Networking
  • How to Restore Previous Versions of Files in Windows 10 Networking
  • How To Check the Proxy Server Settings on Your Computer Networking
  • HDG Explains : What Is a Computer Port & What Are They Used For? Networking

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • How-To
  • iOS
  • iPad
  • iPhone
  • Linux Tips
  • macOS
  • MS Office Tips
  • Networking
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • January 2023
  • December 2022
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018

2021 Android ) Apple apps Best browser change Chrome Closing words Concluding remarks Download email Error Facebook From Google Image Internet Keyboard Mac make Movies Music online Packaging phone? Photos Print Shortcuts sites Switch Time Tips Tricks turn using Video Videos Watch What With Word Working? your YouTube

  • Accessing Local Files and Folders on Remote Desktop Session Networking
  • The Essential Tools To Help You Create a Podcast technology
  • 15 Tips for Apple Pay Not Working General Software
  • Your Phone Drops Calls How to Fix it Computer Tips
  • How to Secure Facebook Account With Mobile in 4 Easy Steps How-To
  • 10 Things You Can Do With An Extra PC How-To
  • 8 Best FPS Browser Games You Can Play Online Now Gaming
  • wifi calling not working android iPhone

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
Go to mobile version