DNS Error not available online

Source: Internet
Author: User
Tags command line reset

First to analyze the cause, there may be some service shutdown, Hosts file was modified. Of course, it is also possible that IP these settings error caused.

First, the service is closed

The service is turned off, then restarting the service will solve the problem.

The function of Netsh winsock reset command

netsh winsock reset command, which is to reset the Winsock directory. If there is a problem with the Winsock protocol configuration on one machine, it will cause the network connection and so on, you need to reset the Winsock directory with the Netsh winsock reset command to restore the network. This command can reinitialize the network environment to resolve the problem of parameter errors due to software conflicts and virus causes. Netsh is an interface that can operate almost all network-related settings through the command line, such as setting up Ip,dns, network cards, wireless networks, etc., Winsock is the system internal directory, Winsock is the Windows Network programming interface, Winsock working in the application layer, It provides a high level data transfer programming interface unrelated to the underlying transport protocol, reset is a reset operation on the Winsock. The IP will need to be reconfigured when the Winsock command restarts the computer.

Two, the reset method of different system Winsock

Resetting Winsock for Windows XP

To reset Winsock for Windows XP, follow these steps:

1. Click "Start" and enter CMD in the run.

2. Then enter the command netsh winsock reset.

3. Restart the computer.

Resetting Winsock for Windows Vista

To reset Winsock for Windows Vista, follow these steps:

1. Click Start, type cmd in the Start Search box, right-click Cmd.exe, click Run as Administrator, and then press continue.

2. Type netsh winsock reset at the command prompt, and then press Enter.

3. Note: If the command is typed incorrectly, an error message appears. Retype the command. When the command completes successfully, a confirmation message appears followed by a new command prompt. Then go to step 3.

4. Type ExIT, and then press Enter.

Using the netsh winsock command, restart is OK.

Second, the Hosts file was tampered with

About this problem, usually is caused by the virus, the solution is to download a Hosts file Repair tool to repair, you can solve the problem.

Open IE browser online, input Baidu URL www.baidu.com, enter, trouble came, open the website is not Baidu, but a title is Baidu, but the Web content is not Baidu website, began to think that Baidu site makeover, put on the new clothes, the following figure, this is not, it is just like to pit me (My reputation has been lowered by this kind of website)!

As shown above, the open is this web site, what rubbish site ah, look do not want to see one more, but every time this, no way ah!

Asked the online master, only to learn that the original is the local computer Hosts file was modified pull, it led to such a mistake!

Here are the solutions:

As shown above, open the path of the above figure, you will find the relevant files, there is a file, the name is hosts, you can download a virus-free file on the Internet, covering it, the problem is solved!

Or, using the method of covering, the problem does not necessarily solve, like my, want to cover not yet, appear the following picture error:

See the hint information, alas, the virus is quite powerful, old toss me!

Third, IP, DNS settings are problematic

On this issue, it is simpler, you can completely set the static IP address to solve the problem.

First, on the desktop to find "Network Neighborhood", I map, right-click, in the pop-up shortcut menu to choose "Properties."

Open the Network Connections window for the following illustration.

Above, right click on "Local Connection", select "Properties" in the menu, and pop up the following image.

In the diagram above, select Internet protocol (TCP/IP) and click Properties to eject the following image.

Above, is quite critical, the IP address is set up here, of course, in addition to the IP address, there are other related options to set.

First select "Use the following IP address", then, you can set, described below.

①ip Address entry: Generally 192.168.0.2→192.168.0.255 this range, variable is the last set of numbers, you can choose a set of numbers to fill.

② Subnet Mask: here: 255.255.255.0, generally is this, is fixed, do not need to modify.

③ Default gateway: Complete the IP address of the router, generally: 192.168.0.1, if your network router address is not to do, please fill in according to the specific circumstances.

Below, you need to complete the DNS server address

DNS server address this refers to the address used by the router to log on to the Internet, because your computer is connected to the Internet through a router, so the DNS server address must match the address used in the router.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.