什么是 DNS,它是如何工作的? (What is DNS and how does it work? )DNS代表域名系统(Domain Name System)或域名服务器(Domain Name Server)或域名服务(Domain Name Service)。DNS是现代网络的支柱。在当今世界,我们被庞大的计算机网络所包围。互联网(Internet)是由数百万台计算机组成的网络,这些计算机以某种或其他方式相互连接。这个网络对于信息的高效交流和传输非常有帮助。每台(Every)计算机都通过 IP 地址与另一台计算机通信。此 IP 地址是一个唯一编号,分配给网络中存在的所有内容。
每个设备,无论是手机、计算机系统还是笔记本电脑,都有自己唯一的IP 地址(IP address),用于与网络中的设备连接。同样,当我们上网时,每个网站都有自己唯一的 IP 地址,分配给它以进行唯一标识。我们看到了像Google.com、Facebook.com这样的网站的名称,但它们只是被屏蔽了,它们隐藏了这些唯一的 IP 地址。作为人类,与数字相比,我们倾向于更有效地记住名称,这就是为什么每个网站都有一个隐藏网站 IP 地址的名称的原因。
现在,DNS服务器所做的就是将您请求的网站的 IP 地址带到您的系统,以便您的系统可以连接到该网站。作为用户,我们只需输入我们想要访问的网站的名称,DNS服务器负责获取与该网站名称对应的 IP 地址,以便我们可以在我们的系统上与该网站进行通信。当我们的系统获得所需的 IP 地址时,它会向ISP发送有关该 IP 地址的请求,然后接下来的过程。
上述过程发生在几毫秒内,这就是我们通常不会注意到这个过程的原因。但是,如果我们使用的DNS服务器会降低您的互联网速度或它们不可靠,那么您可以轻松更改Windows 10上的(Windows 10)DNS服务器。DNS服务器中的任何问题或更改DNS服务器都可以在这些方法的帮助下完成。
在 Windows 10 上更改DNS设置的3种方法(Ways)
确保 创建一个还原点(create a restore point) 以防万一出现问题。
方法 1:通过在控制面板中配置 IPv4 设置来更改 DNS 设置(Method 1: Change DNS Settings by configuring IPv4 settings in Control Panel )
1.单击任务栏屏幕左下角的开始按钮或按Windows键打开( Windows Key.)开始菜单。(Start )
2.键入控制面板(Control Panel )并按回车键将其打开。
3.单击控制面板中的网络和 Internet(Network and Internet )。
4.单击网络和Internet中的网络和共享中心(Network and Sharing Center)。
5.在网络(Network)和共享中心(Sharing Center)的左上角点击更改适配器设置(Change Adapter Settings)。
6.将打开一个网络连接(Network Connections)窗口,从那里选择连接到互联网的连接。
7.右键单击该连接并选择属性。(Properties.)
8.在标题“此连接使用以下项目(This connection uses the following items)”下,选择Internet 协议版本 4(Internet Protocol Version 4) ( TCP/IPv4) ,然后单击属性(Properties)按钮。
9.在 IPv4 属性窗口中,勾选(checkmark)“使用以下 DNS 服务器地址(Use the following DNS server addresses)”。
10.键入首选和备用DNS服务器。
11.如果你想添加一个公共DNS服务器,那么你可以使用谷歌(Google)公共DNS服务器:
首选 DNS 服务器:8.8.8.8
备用 DNS 服务器框:8.8.4.4
12.如果您想使用OpenDNS ,请使用以下内容:
首选 DNS 服务器:208.67.222.222(Preferred DNS Server: 208.67.222.222)
备用 DNS 服务器框:208.67.220.220(Alternate DNS Server box: 208.67.220.220)
13.如果您想添加两个以上的DNS服务器,请单击高级。(Advanced.)
14.在 Advanced TCP/IP属性窗口中切换到DNS 选项卡。( DNS tab.)
15.单击“添加”按钮(Add button ),您可以添加所需的所有 DNS 服务器地址。 (add all the DNS server addresses you want. )
16.您将添加的DNS服务器的优先级将(priority of the DNS servers)从上到下给出。(top to bottom.)
17.最后,单击“确定”,然后再次单击“确定”以保存所有打开的窗口以保存更改。
18.选择确定(OK )应用更改。
这是您可以通过控制面板配置IPV4设置来更改(IPV4)DNS设置的方法。(DNS)
方法 2:使用 Windows 10 设置更改 DNS 服务器(Method 2: Change DNS Servers using Windows 10 Settings)
1.按Windows Key + I 打开设置(Settings),然后单击网络和 Internet(Network & Internet)。
2.从左侧菜单中,根据您的连接单击WiFi 或以太网。( WiFi or Ethernet)
3.现在单击您连接的网络连接( connected network connection),即 WiFi 或以太网。
4.接下来,向下滚动,直到看到IP 设置(IP settings)部分,单击它下面的编辑按钮(Edit button)。
5.从下拉菜单中选择“手动”(Manual)并将 IPv4 开关切换到 ON。( toggle the IPv4 switch to ON.)
6.键入您的“首选 DNS(Preferred DNS) ”和“备用 DNS(Alternate DNS) ”地址。
7.完成后,单击“保存”按钮。( Save button.)
方法 3:使用命令提示符更改 DNS IP 设置(Method 3: Change DNS IP Settings using Command Prompt)
众所周知,您手动执行的每条指令也可以在命令提示符(Command Prompt)的帮助下执行。您可以使用 cmd向Windows发出每条指令。因此,为了处理DNS设置,命令提示符也很有帮助。要通过命令提示符更改Windows 10 上的(Windows)DNS设置,请执行以下步骤:
1.单击任务栏屏幕左下角的开始按钮或按Windows键打开( Windows Key.)开始菜单。(Start )
2.键入命令提示符, (Command Prompt, )然后右键单击它并以管理员身份运行。(Run as Administrator.)
3.在命令提示符(Command Prompt)中键入wmic nic get NetConnectionID以获取(wmic nic get NetConnectionID)网络(Network)适配器的名称。
4.更改网络设置类型netsh。
5.要添加主DNS IP地址,请键入以下命令并按 Enter:
interface ip set dns name= “Adapter-Name” source= “static” address= “Y.Y.Y.Y”
注意:(Note:) 请记住(Remember)将适配器名称替换为您在步骤 3 中查看的网络适配器的名称,并将 XXXX更改为您要使用的DNS服务器地址,例如,如果使用(DNS)Google Public DNS而不是XXXX。使用8.8.8.8。
5.要向您的系统添加备用DNS IP地址,请键入以下命令并按 Enter:
interface ip add dns name= “Adapter-Name” addr= “Y.Y.Y.Y” index=2.
注意:(Note:) 请记住(Remember)将适配器名称作为您在步骤 4 中查看的网络适配器的名称,并将YYYY更改为您要使用 的辅助DNS服务器地址,例如,如果使用Google Public DNS而不是YYYY使用8.8.4.4。
6.这是在命令提示符的帮助下更改Windows 10中的(Windows 10)DNS设置的方法。
这是在Windows 10(Windows 10)上更改DNS设置的三种方法。许多第三方应用程序(例如QuickSetDNS和公共 DNS 服务器工具(Public DNS Server Tool))可用于更改DNS设置。当您的计算机在工作场所时,请勿更改这些设置,因为这些设置的更改可能会导致连接问题。
由于 ISP 提供的DNS服务器非常慢,因此您可以使用快速且响应速度更快的公共DNS服务器。谷歌(Google)提供了一些好的公共DNS服务器,其余的你可以在这里查看。
受到推崇的:(Recommended:)
我希望上述步骤对您有所帮助,现在您可以轻松 更改 Windows 10 上的 DNS 设置,(change DNS settings on Windows 10) 但如果您对这篇文章仍有任何疑问,请随时在评论部分提问。
3 Ways to change DNS settings on Windows 10
What is DNS and how does it work? DNS stands for Domain Name System or Domain Name Server or Domain Name Service. DNS is the backbone of modern-day networking. In today’s world, we are surrounded by a huge network of computers. The Internet is a network of millions of computers which are connected to one another in some or other ways. This network is very helpful for efficient communication and transmission of the information. Every computer communicates with another computer over an IP address. This IP address is a unique number that is assigned to everything which is present in the network.
Every device whether it is a mobile phone, a computer system or a laptop each has its own unique IP address which is used to connect with that device in the network. Similarly, when we surf the internet, each and every website has its own unique IP address which is assigned to it to be uniquely identified. We see the name of websites like Google.com, Facebook.com but they are just masked which are hiding these unique IP addresses behind them. As humans, we have the tendency to remember the names more efficiently as compared to numbers that is the reason why each website has a name that is hiding the IP address of the website behind them.
Now, what DNS server do is that it brings the IP address of the website you requested to your system so that your system can connect to the website. As a user, we just type the name of the website we like to visit and it is the responsibility of the DNS server to fetch out the IP address corresponding to that website name so that we can communicate with that website on our system. When our system gets the required IP address it sends the request to the ISP regarding that IP address and then the rest of the procedure follows.
The above process happens in milliseconds and this is the reason we don’t usually notice this process. But if the DNS server that we are using is slowing down your internet or they aren’t reliable then you can easily change the DNS servers on Windows 10. Any problem in the DNS server or changing the DNS server can be done with the help of these methods.
3 Ways to change DNS settings on Windows 10
Make sure to create a restore point just in case something goes wrong.
Method 1: Change DNS Settings by configuring IPv4 settings in Control Panel
1.Open the Start menu by clicking on the start button in the bottom left corner of the screen on the taskbar or press the Windows Key.
2.Type Control Panel and hit Enter to open it.
3.Click on Network and Internet in the Control Panel.
4.Click on Network and Sharing Center in Network and Internet.
5.On the upper left side of the Network and Sharing Center click on Change Adapter Settings.
6.A Network Connections window will open, from there select the connection that is connected to the internet.
7.Right-click on that connection and select Properties.
8.Under the heading “This connection uses the following items” select Internet Protocol Version 4 (TCP/IPv4) and click on the Properties button.
9.In IPv4 Properties window, checkmark “Use the following DNS server addresses“.
10.Type the preferred and alternate DNS servers.
11.If you want to add a public DNS server then you can use Google public DNS server:
Preferred DNS Server: 8.8.8.8
Alternate DNS Server box: 8.8.4.4
12.In case you want to use OpenDNS then use the following:
Preferred DNS Server: 208.67.222.222
Alternate DNS Server box: 208.67.220.220
13.In case you want to add more than two DNS servers then click on Advanced.
14.In the Advanced TCP/IP properties window switch to the DNS tab.
15.Click on the Add button and you can add all the DNS server addresses you want.
16.The priority of the DNS servers that you will add will be given from top to bottom.
17.Finally, click OK then again click OK for all the open windows to save changes.
18.Select OK to apply changes.
This is how you can change DNS settings by configuring IPV4 settings via the control panel.
Method 2: Change DNS Servers using Windows 10 Settings
1.Press Windows Key + I to open Settings then click on Network & Internet.
2.From the left-hand menu, click on WiFi or Ethernet depending on your connection.
3.Now click on your connected network connection i.e. WiFi or Ethernet.
4.Next, scroll down until you see the IP settings section, click on the Edit button under it.
5.Select ‘Manual’ from the drop-down menu and toggle the IPv4 switch to ON.
6.Type your “Preferred DNS” and “Alternate DNS” addresses.
7.Once done, click on the Save button.
Method 3: Change DNS IP Settings using Command Prompt
As we all know that every instruction which you perform manually can also be performed with the help of Command Prompt. You can give every instruction to Windows using cmd. So, in order to deal with DNS settings, the command prompt can also be helpful. To change the DNS settings on Windows 10 through the command prompt, follow these steps:
1.Open the Start menu by clicking on the start button in the bottom left corner of the screen on the taskbar or press the Windows Key.
2.Type Command Prompt, then right-click on it and Run as Administrator.
3.Type wmic nic get NetConnectionID in Command Prompt to get the names of Network adapters.
4.To change the network settings type netsh.
5.To add the primary DNS IP address, type the following command & hit Enter:
interface ip set dns name= “Adapter-Name” source= “static” address= “Y.Y.Y.Y”
Note: Remember to replace the adapter name as the name of the network adapter you have viewed in step 3 and change X.X.X.X with the DNS server address that you want to use, for example, in case of Google Public DNS instead of X.X.X.X. use 8.8.8.8.
5.To add an alternative DNS IP address to your system type the following command & hit Enter:
interface ip add dns name= “Adapter-Name” addr= “Y.Y.Y.Y” index=2.
Note: Remember to put the adapter name as the name of the network adapter you have and viewed in step 4 and change Y.Y.Y.Y with the secondary DNS server address that you want to use, for example, in case of Google Public DNS instead of Y.Y.Y.Y use 8.8.4.4.
6.This is how you can change the DNS settings in Windows 10 with the help of the command prompt.
These were three methods to change the DNS settings on Windows 10. Many third-party applications such as QuickSetDNS & Public DNS Server Tool are useful to change the DNS settings. Do not change these settings when your computer is at the workplace as the change in these settings can cause connectivity problems.
As the DNS servers provided by the ISP’s are quite slow so you can use the public DNS servers that are fast and more responsive. Some of the good public DNS servers are offered by Google and the rest you can check out here.
Recommended:
I hope the above steps were helpful and now you can easily change DNS settings on Windows 10 but if you still have any questions regarding this post then feel free to ask them in the comment section.