Facebook
From Vitor M, 2 Years ago, written in DOS.
Embed
Download Paste or View Raw
Hits: 91
  1. @ECHO off
  2. cls
  3. :start
  4. ECHO 1. NextDNS
  5. ECHO 2. Cloud Flare 1.1.1.1
  6. set /p choice=Type the number to print text.
  7. rem if not '%choice%'=='' set choice=%choice:~0;1% (don`t use this command, because it takes only first digit in the case you type more digits. After that for example choice 23455666 is choice 2 and you get "bye"
  8. if '%choice%'=='' ECHO "%choice%" is not valid please try again
  9. if '%choice%'=='1' goto next
  10. if '%choice%'=='2' goto cloudflare
  11.  
  12. goto start
  13. :next
  14. netsh interface ip del dnsservers "Ethernet" 1.1.1.1
  15. netsh interface ip add dnsservers "Ethernet" 45.90.XX.XX
  16. netsh interface ip add dnsservers "Ethernet" 45.90.XX.XX
  17. ipconfig /flushdns
  18. netsh interface ip show dnsservers "Ethernet"
  19. goto end
  20. :cloudflare
  21. netsh interface ip del dnsservers "Ethernet" 45.90.XX.XX
  22. netsh interface ip del dnsservers "Ethernet" 45.90.XX.XX
  23. netsh interface ip add dnsservers "Ethernet" 1.1.1.1
  24. ipconfig /flushdns
  25. netsh interface ip show dnsservers "Ethernet"
  26. goto end
  27. :end
  28.  
  29.  
  30.  
  31.