In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use the registry to change the DNS, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Most into my DNS is always intermittent, very unstable, Guangzhou area, if your DNS often needs to be replaced, try this batch
Many people in the forum have sent the batch process of changing DNS, but the batch waiting for the change process is a bit slow, and some comrades have 2 to N bits of local connection, which is very inconvenient.
Batch processing content:
The code is as follows:
Echo off
Regedit / s\\ server\\ xx\\ xx.reg
Cls
\ server\\ xx\\ xx.reg for your remote drive. Don't use mine, just change the red part to your remote drive.
Here is the registry entry for DNS. Mine is 2000.
The code is as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet001\ Services\ Tcpip\ Parameters\ Interfaces\ {B130BF2A-0BD5-4B4D-B3A9-55A94FC46694}]
"UseZeroBroadcast" = dword:00000000
"EnableDeadGWDetect" = dword:00000001
"EnableDHCP" = dword:00000000
"IPAddress" = hex (7): 31pyrrine = hex (7): 31pyrrine, 00pyrus, 39pyrus, 32pyroria, 2elemagerie, 36pyrus, 3pyrus, 38pyrus, 2epyrus, 32pyrus, 32pyrus, 31pyrus, 32pyrus, 30pyrus, 31pyrus, 00pyrus.
"SubnetMask" = hex (7): 32pyrrine, 00pyrrine, 35pyrronomy, 35pyrronomy, 2elemagne, 32pyroria, 32pyrus, 32pyrus, 32pyrs, 35,00pyrs, 35,00pr, 3000pr, 0000pr, 0000pr, 0000pr
"DefaultGateway" = hex (7): 31pyrrine = hex (7): 31pyrmus 00pyrus 39pyrus 32pyroria 32pyroria 300pyroria 36pence 00pr 38pyrus 32pyroria 32pyroro 32pyroro 32pyrort 32pyrus 32pencils 35pyrs 34pyrs 0000pr 00pr 00pr 00pr 0000pr
"DefaultGatewayMetric" = hex (7): 31Jing 0000BET 0000BET 0000Jue 00
"NameServer" = "202.96.128.166 61.144.56.100"
"Domain" = ""
"DisableDynamicUpdate" = dword:00000000
"EnableAdapterDomainNameRegistration" = dword:00000000
"InterfaceMetric" = dword:00000001
"TCPAllowedPorts" = hex (7): 301.00000000000000000.00000.0000000000000000000000000070000000000000000007000000000000000000000000700000070000000000000000000070000000070000000000000000000.0000000000000.000000000000000000000000000000000000000.0000000000000000000000000.000000000000000000000000000000000000000.00000000000000000.000000000000000000000000000000000000000.00000000000000000.00000000000.0000000.0000
"UDPAllowedPorts" = hex (7): 301.00000000000000000.00000.0000000000000000000000000070000000000000000007000000000000000000000000700000070000000000000000000070000000070000000000000000000.0000000000000.00000000000000000000000000000000007000000000000000000000.00000000000000000000000000000000000000000000000.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000
"RawIPAllowedProtocols" = hex (7): 301.00000000000000000.00000.0000000000000000000000000070000000000000000007000000000000000000000000700000070000000000000000000070000000070000000000000000000.0000000000000.00000000000000000000000000000000007000000000000000000000.00000000000000000000000000000000000000000000000.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0000
"NTEContextList" = hex (7): 30meme0078pence00pence30pr 00pr 30pr 000000pr 30pr 30pr 30pr 30lgr 30pr 30pr 30pr 0000lc 0000pr 0000pr 0000pr 00l0lc 0000lt
"DhcpClassIdBin" = hex:
"DhcpServer" = "255.255.255.255"
"Lease" = dword:00000e10
"LeaseObtainedTime" = dword:45090a44
"T1" = dword:4509114c
"T2" = dword:45091692
"LeaseTerminatesTime" = dword:45091854
"IPAutoconfigurationAddress" = "0.0.0.0"
"IPAutoconfigurationMask" = "255.255.0.0"
"IPAutoconfigurationSeed" = dword:92437cc6
"AddressType" = dword:00000000
Save REG and put it in your server's remote shared directory, just change the red font DNS above to your own DNS.
If anyone doesn't know how to execute it remotely, give me a list.
For example, my server name is sever, and the share name established on the server is xx$ $, which means hiding. You can add it or not.
If I save the above registry key as a.reg, I will put the a.reg registry in the shared directory of xx$
The batch process reads as follows:
The code is as follows:
Echo off
Regedit / s\\ server\\ xx$\\ a.reg
Cls
Save bat, throw this batch to the startup item, boot up and run, change it in 1 second, take effect in time, there is no need to wait slowly!
The above is all the contents of the article "how to use the Registry to change DNS". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.