How To Use Etc Hosts
Don t use a comma after etc.
How to use etc hosts. 1 on the windows 10 computer right click on the start menu and select command prompt admin. Adding the host name domain name to the etc hosts file. The hosts file also referred to as etc hosts is a text file used by windows and other operating systems to map ip addresses to host names or domain names. 192 168 56 1 ubuntu tecmint lan 192 168 56 10 centos tecmint lan next test if everything is working well as expected using the ping command from host 1 you can ping host 2 using it domain name like so. If it is at the end of the sentence.
Go to the real hosts file location and rename it. Once the files are visible select hosts file and click on the open button. Copy and paste the new hosts file to that location accepting the permissions popup. If those synonyms make sense you can use etc. To view files in etc folder use the down arrow to switch to all files view.
A good way to test whether etc. Follow the screenshot for better understanding. This file acts as a local dns service for your local computer and it overrides the mappings from the dns server that your computer is connected to through the network. And et cetera is redundant. Notepad c windows system32 drivers etc hosts once notepad is open you can edit the file.
Edit using the correct format and save the hosts file with windows notepad. Is appropriate is to substitute and so on or and so forth. Alternatively you can navigate to c windows system32 drivers etc using the left pane menu. Remember et means and. Create a new hosts file somewhere like the desktop or documents.
In open file dialogue box type c windows system32 drivers etc as the file name entry. Now open the etc hosts file using your editor of choice as follows sudo vi etc hosts then add the lines below to the end of the file as shown in the screen shot below. You should never use and et cetera. To add our example we will first need to open the hosts file with vi or your favorite editor.