To add a hostname and IP to the hosts file on Windows you need to do few simple steps. Please go through these post and you will learn how to edit hosts file!
Table of Contents
You Can Ask: How do I add entries to my host file?
This is why I am here to share this knowledge with you in a very short and easy to understand way! Don’t wait any longer, we just get down to case.
Host File Location In Windows
To make the host file visible, choose from the list “All files (*)“.
Let’s Edit Hosts File Windows 10
At the bottom of the open file, we add an entry. I added that port 127.0.0.1 is supposed to solve the name of the host “cloudera“. In that, in the search engine instead of entering the IP address now, it will be possible to use the host name.
Save file and go the the next step.
Verification that our hostname is solved correctly on the IP address can be performed using the “Command Prompt” and the “ping” command available under Windows system.
As you can see in the screenshot below, the name “cloudera” was correctly solved to the address “127.0.0.1”.
In case we made a mistake, we received the information:
C:\>ping test_host Ping request could not find host test_host. Please check the name and try again.
That’s all about how To add a hostname and IP to the hosts file on Windows! Hope you liked my post. If it was helpful please share this post. I will help me to reach more people and spread my blog.
We strongly encourage you to view other interesting posts that you can find on our blog. Go to the home page or use the search engine or the Tags tree.
To add a hostname and IP address on a Windows system, follow these steps:
- open the Start menu and search for “Control Panel”. Click on the “Control Panel” icon to open it.
- In the Control Panel, go to “Network and Internet” and then click on “Network and Sharing Center”.
- In the Network and Sharing Center, click on the “Change adapter settings” link on the left side of the window.
- Right-click on the network adapter that you want to configure and select “Properties”.
- In the Properties window, click on the “Internet Protocol Version 4 (TCP/IPv4)” or “Internet Protocol Version 6 (TCP/IPv6)” option, depending on which protocol you want to use.
- Click on the “Properties” button to open the Internet Protocol Properties window.
- In the Internet Protocol Properties window, you can specify the IP address and the subnet mask for your network adapter. You can also specify the default gateway and the DNS servers.
- To add a hostname, click on the “Advanced” button. In the Advanced TCP/IP Settings window, click on the “DNS” tab and then click on the “Add” button. In the “Edit IP Address” window, enter the hostname and IP address that you want to add and then click “OK”.
- Click “OK” to close the Advanced TCP/IP Settings window and then click “OK” again to close the Internet Protocol Properties window.
- Close the Network Connections window and then close the Control Panel. The hostname and IP address that you added should now be configured on your system.
Note: If you are using a static IP address, you will need to manually configure the IP address, subnet mask, default gateway, and DNS servers. If you are using a dynamic IP address, you can use a DHCP server to automatically assign these values to your system.
Could You Please Share This Post? I appreciate It And Thank YOU! :) Have A Nice Day!
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?