Advertisement
patronanejo

TUNLR DNS BATCH FILES

Jan 9th, 2013
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. TUNLR DNS BATCH FILES
  2. __________________________________________________________________
  3.  
  4. ::NEW ACTIVATETUNLR.BAT
  5.  
  6. for /f "tokens=3*" %%i in ('netsh interface ipv4 show config^|find """"^|
  7.  
  8. find /v "Drah"^|find /v "1394"') do (
  9.  
  10. netsh interface ipv4 add dnsservers name="%%~j" 184.82.222.5
  11. netsh interface ipv4 add dnsservers name="%%~j" 199.167.30.144 index=2
  12.  
  13. )
  14. netsh interface ip show config
  15. ipconfig /flushdns
  16. pause
  17.  
  18. ::FINAL - R.I.P. 25 February 2014
  19. ::69.197.169.9 (Primary)
  20. ::192.95.16.109 (Secondary)
  21.  
  22. ::21 MAR 2013 142.54.177.158
  23. ::SECONDARY 198.147.22.212
  24. ::TERTIARY? 99.167.30.144
  25.  
  26. ::NEW PRIMARY DNS 184.82.222.5
  27. ::SECONDARY DNS 199.167.30.144
  28. ::OLD PRIMARY DNS 149.154.158.186
  29. ::ALTERNATE DNS 64.250.122.104
  30. __________________________________________________________________
  31.  
  32. ::DEACTIVATETUNLR.BAT
  33.  
  34. for /f “tokens=3*” %%i in (‘netsh interface ipv4 show config^|find “”"”^|find /v “Drah”^|find /v “1394?‘) do (
  35.  
  36. netsh interface ipv4 set dnsservers name=”%%~j” source=dhcp
  37.  
  38. )
  39. ipconfig /flushdns
  40. pause
  41. __________________________________________________________________
  42.  
  43. ::SET TO GOOGLE DNS
  44.  
  45. for /f "tokens=3*" %%i in ('netsh interface ipv4 show config^|find """"^|find /v "Drah"^|find /v "1394"') do (
  46.  
  47. netsh interface ipv4 add dnsservers name=”%%~j” 8.8.8.8
  48. netsh interface ipv4 add dnsservers name=”%%~j” 8.8.4.4 index=2
  49.  
  50. )
  51. netsh interface ip show config
  52. ipconfig /flushdns
  53. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement