Modify the hosts file,Analog domain name resolution!

Kloxo panel to add the domain name,Sometimes we want to test it before going to formally resolve domain names。How to do it? Be sure to resolve domain names to access the website? How to simulate such an effect?

There is a way: Modify the hosts file,Analog domain name resolution! You can modify your computer's hosts file,The purpose to force a name resolution to a specific IP's。of course,Modify this document,It will only take effect on your computer,Does not affect other people。

How to modify the hosts file?

1.The location of the hosts file:xp,2000And other systems in C:\windows system32 drivers etc folder, locate the Hosts file and use Notepad to open(Windows 9x / Me system in C:\Windows folder to find)
2.Adding a separate line in accordance with the recording format of the domain name address ip。E.g

72.14.219.190 www.ctohome.com

note,IP address with no spaces in front,between ip addresses and domain names,There must be at least one space。
Modified,Be sure to remember to save the file。
3.How do you know the IP address of the domain name is already in force?
1.On your computer, please follow the steps below:Start–> Run–> Enter cmd–> Ping domain–> Enter to see results
2.Reply from show similar results 173.212.229.36: bytes=32 time=79ms TTL=53
Middle 173.212.229.36 It is the IP address of the domain name
4.Close all browser,reopen,Test whether the domain name you just add normal visit
5.If the access is not normal,Follow the 3 steps,Check the domain name that you have just set corresponds with the correct IP address

Leave a Comment