Do not understand it, you want it to connect to the website of Baidu or Google's website. It did not understand, because you enter the human language, rather than machine language.
Machines can understand the language is a sequence of digital address, for example: 119.75.213.61, which is Baidu's address, called IP addresses. There are countless web sites, each site has an address such as a unique building.
Machines can understand this string figures, in accordance with its instructions to find the corresponding Web site.
People say that human language, machine, said machine language, which would certainly have a translation problem.When you are in the browser's address bar enter: www.baidu.com, need a translation, it becomes: 119.75.213.61, to your machine to do it. Then, your computer are connected to Baidu, so you can see on the screen to a specific page.
Both languages have the necessary presence, you can not remember the number of IP addresses, because it is most likely to have as many as 12.Just think, you can stay back a few phone numbers? Of course, the phone never cause any trouble to you, because your cell phone address book to record the names. Find your contacts, you just remember the names, the phone will automatically bring up the corresponding names and phone numbers.Computer is the same, there is a special server is responsible for this translation, or the corresponding work.
Terminology is calledDNS resolution servers, simply, is a specialized domain name server to translate. It is responsible for your domain names into IP addresses submitted, tell your machine, make sure it is not even past. It like a Huji Jing, what you tell it to go to a few unit cell floor is the gate number, he was responsible for telling you how one should Zuozhuanyouzhuan moves. Obviously, if the Huji Jing is a bastard, then it is likely that the wrong way to you. Alternatively, there are terrorists hijacked the Huji Jing, guiding him casually, you will find not a workable option.
How to do this happens? That certainly is not to ask the Huji Jing, but rather their own machines to guiding. Computer operating systems on your Hosts file is used to do this. You open the file for editing, for example write:
123.123.123.123 baidu.com
Equivalent to the machine you tell yourself:Listen! After I just want you to connect input baidu.com, then, please contact you directly to the address 123.123.123.123. Do not look for DNS resolution servers, good, you can find.
Thus, if the DNS made insane, must take refers to the hole you go, you can use the Hosts file to your machine immortal guiding. Provided that: you have to know the true and correct IP address in order to guide your machine to find the corresponding site.
This is the Hosts file of the principle.
In addition, the location on the Hosts file will have little trouble, because different operating systems, it is not the same location. If you find the professional interpretation, they would say address the general at:% SystemRoot% \ system32 \ drivers \ etc \
When you see the percent of the time, estimated to have fainted. Ah, this is a technical staff to write the document.
For users of Windows operating system (that is, you use NT/2000/XP/2003/Vista),% SystemRoot% means that the operating system root directory. Simply put, if your machine is not fitted very weird, it refers to your C drive. You click on the "My Computer", into the C drive, into the windows directory, open the. Then find the directory system32. Opened, to find drivers directory. Open later, find etc directory, enter the following, Hosts file on there.
If you can not find it, use search to find the folder system32, or simply search file Hosts.
Finally, once you modify the Hosts file, be sure to remember the incident. Perhaps over time, the site of the IP address has changed, then you should increase the line of the contents of deleted or modified accordingly, otherwise, your machine will again hit the rock with his head, while you are still confused:Why is it all access can not access my machine?
Reprinted fromand line of resources [ http://www.qiexing.com/ ]