Sida loo beddelo server-ka DNS iyadoo la adeegsanayo Command Prompt iyo PowerShell

Haddii aad rabto inaad bedesho server-ka DNS adoo isticmaalaya Command Prompt ama Windows PowerShell , markaa casharkan ayaa ku anfacaya adiga. Halkii aad ka furi lahayd daaqada Isku xirka Shabakada(Network Connections) , waxaad u mari kartaa tillaabadan tillaabo tillaabo oo aad isbeddel ku sameyso adigoo isticmaalaya Command Prompt ama PowerShell .

Beddelidda ciwaannada server-ka DNS(Changing the DNS server addresses) waa wax fudud - si kastaba ha ahaatee, haddii Guddiga kantaroolku aanu ka furmin kombiyuutarkaaga sababo jira awgood, waxaad la kulmi kartaa dhibaato. Taasi waa marka aad isticmaali karto hagahan si aad shaqada u qabato. Waa inaad ogaataa in casharkan uu kaa caawin doono inaad bedesho server-ka DNS ee la door bidayay iyo serfarka (Preferred DNS server)DNS kale(Alternate DNS server ) oo kaliya.

Sida loo beddelo server-ka DNS adoo isticmaalaya Command Prompt

Si aad u bedesho server-ka DNS adoo isticmaalaya Command Prompt , raac talaabooyinkan-

  1. Ka raadi cmd sanduuqa raadinta Taskbar.
  2. Guji Run sidii maamulaha(Run as administrator) doorashada
  3. Isticmaal amarka netsh si aad u muujiso dhammaan ilaha internetka.
  4. Hoos u dhig Magaca Interface(Interface Name) .
  5. Geli(Enter) amarka si aad u bedesho ciwaanada serverka.

Marka hore, waxaad u baahan doontaa inaad furto Command Prompt oo leh mudnaanta maamulaha(open Command Prompt with administrator privilege) . Taas awgeed, waxaad ka raadin kartaa cmdsanduuqa raadinta Taskbar , oo guji Run as admin(Run as administrator ) option. Furitaanka ka dib, waxaad u baahan tahay inaad hesho Magaca Interface(Interface Name) ama magaca isha internetka. Si aad taas u hesho, geli amarka soo socda-

netsh interface show interface

Waxay ku tusinaysaa dhammaan magacyada isha internetka ee hore ugu xidhan shaashaddaada. U fiirso magaca interface-ka aad hadda ku xidhan tahay.

Sida loo beddelo server-ka DNS adoo isticmaalaya Command Prompt

Taas ka dib, fuli amarradan-

Isticmaalayaasha IPv4 DNS:(For IPv4 DNS users:)

netsh interface ipv4 set dnsservers "Interface Name" static preferred-DNS-address primary
netsh interface ipv4 add dnsservers "Interface Name" alternate-DNS-address index=2

Sida loo beddelo server-ka DNS adoo isticmaalaya Command Prompt

IPV6 isticmaalayaasha DNS:(For IPv6 DNS users:)

netsh interface ipv6 set dnsservers "Interface Name" static preferred-DNS-address primary
netsh interface ipv6 add dnsservers "Interface Name" alternate-DNS-address index=2

Ha iloobin inaad ku beddesho doorbid- DNS - ciwaanka iyo beddelka - DNS -cinwaanka ciwaannada server-ka (DNS)DNS ee la doonayo .

Sida loo beddelo server-ka DNS adoo isticmaalaya PowerShell

Si aad u bedesho server-ka DNS adoo isticmaalaya PowerShell , raac talaabooyinkan-

  1. Ka raadi sheelka tamarta(powershell) gudaha sanduuqa raadinta Taskbar.
  2. Guji Orod sida maamulaha(Run as Administrator) doorashada.
  3. Geli Get-DnsClientServerAddressamarka si aad u muujiso InterfaceAlias ​​.
  4. Geli(Enter) amarka si aad u bedesho ciwaannada serverka DNS

Marka hore, waxaad u baahan tahay inaad furto daaqad sare oo Windows PowerShell ah. (open an elevated Windows PowerShell)Taas awgeed, waxaad raadin kartaa powershelloo guji ikhtiyaarka Run as Administrator . Marka xigta, geli amarka soo socda oo qor magaca InterfaceAlias .

Get-DnsClientServerAddress

Intaa ka dib, geli amarka soo socda si aad u bedesho cinwaanada IPv4(IPv4) iyo IPv6 .

Set-DNSClientServerAddress "InterfaceAlias" –ServerAddresses ("preferred-DNS-address", "alternate-DNS-address")

Waxay u baahan tahay inaad beddesho saddex shay ka hor intaadan garaacin badhanka Gelida :(Enter)

  • InterfaceAlias,
  • Ciwaanka-DNS-doorbiday,
  • Cinwaanka-DNS-ka-duwan.

beddel server-ka DNS adoo isticmaalaya Command Prompt iyo PowerShell

Kahor intaadan riixin badhanka Gelida(Enter) , waxay u ekaan doontaa sidan-

Set-DNSClientServerAddress "Wi-Fi" –ServerAddresses ("1.1.1.1","1.0.0.1")

Kadib samaynta isbeddeladan, waxaa laga yaabaa inaad daadato kaydka DNS(flush the DNS cache) .

TALO(TIP) : Ka akhriso wax badan oo ku saabsan qaar ka mid ah bixiyeyaasha DNS ugu fiican - Comodo Secure DNS,  OpenDNS,  Google Public DNS,  Yandex Secure DNS,  Cloudflare DNS,  Angel DNS, iwm.



About the author

Waxaan ahay injineer software iyo khabiir Windows 10 ah. Waxaan leeyahay waayo-aragnimo ka badan laba sano oo ku saabsan la shaqaynta casriga ah, windows 10, iyo Microsoft Edge. Diiradayda ugu weyn waa ka dhigista aaladahaagu kuwo si ka wanaagsan oo degdeg ah u shaqeeya. Waxaan ka shaqeeyay mashaariic kala duwan shirkado ay ka mid yihiin Verizon, Imac, HP, Comcast, iyo kuwo kale oo badan. Sidoo kale waxaan ahay macalin shahaado ka haysta tababarka daruuraha Microsoft Azure.



Related posts