patronanejo

ActivateTunlr_NewDNS.bat

Oct 5th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ::NEW ACTIVATETUNLR.BAT
  2.  
  3. for /f "tokens=3*" %%i in ('netsh interface ipv4 show config^|find """"^|
  4.  
  5. find /v "Drah"^|find /v "1394"') do (
  6.  
  7. netsh interface ipv4 add dnsservers name="%%~j" 184.82.222.5
  8. netsh interface ipv4 add dnsservers name="%%~j" 199.167.30.144 index=2
  9.  
  10. )
  11. netsh interface ip show config
  12. ipconfig /flushdns
  13. pause
  14.  
  15. ::NEW PRIMARY DNS 184.82.222.5
  16. ::SECONDARY DNS 199.167.30.144
  17. ::OLD PRIMARY DNS 149.154.158.186
  18. ::ALTERNATE DNS 64.250.122.104
Add Comment
Please, Sign In to add comment