Skip to content

Instantly share code, notes, and snippets.

@dogancelik
Last active November 5, 2020 01:38
Show Gist options
  • Save dogancelik/580cf55a5bd4e1560a6a to your computer and use it in GitHub Desktop.
Save dogancelik/580cf55a5bd4e1560a6a to your computer and use it in GitHub Desktop.
Change DNS #Windows
rem For Windows 10
netsh interface ipv4 add dnsserver "Ethernet" address=8.8.8.8 index=1
netsh interface ipv4 add dnsserver "Ethernet" address=8.8.4.4 index=2
rem For Windows 7
netsh interface ipv4 add dnsserver "Local Area Connection" address=8.8.8.8 index=1
netsh interface ipv4 add dnsserver "Local Area Connection" address=8.8.4.4 index=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment