patronanejo

Activate_GoogleDNS.bat

Oct 5th, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ::SET TO GOOGLE DNS
  2.  
  3. for /f "tokens=3*" %%i in ('netsh interface ipv4 show config^|find """"^|find /v "Drah"^|find /v "1394"') do (
  4.  
  5. netsh interface ipv4 add dnsservers name=ā€%%~jā€ 8.8.8.8
  6. netsh interface ipv4 add dnsservers name=ā€%%~jā€ 8.8.4.4 index=2
  7.  
  8. )
  9. netsh interface ip show config
  10. ipconfig /flushdns
  11. pause
Add Comment
Please, Sign In to add comment