Skip to content

Instantly share code, notes, and snippets.

@Jalalx
Created August 19, 2021 08:12
Show Gist options
  • Save Jalalx/95fa7dbee33b7935e3ffbd157f3bae45 to your computer and use it in GitHub Desktop.
Save Jalalx/95fa7dbee33b7935e3ffbd157f3bae45 to your computer and use it in GitHub Desktop.
Set and unset Shekan DNS settings using commandline on windows

What is this?

Following scripts help you easily set DNS settings to Shekan servers and resetting them back to default.

How to use?

  1. Save following cmd files on your system.
  2. Make sure you change the "Wi-Fi" to your network adapter name
  3. Remember to run these commands as an administrator.
netsh interface ipv4 set dns name="Wi-Fi" static 185.51.200.2
netsh interface ip add dns "Wi-Fi" 178.22.122.100 index=2
ipconfig /flushdns
netsh interface ip set dnsservers name="Wi-Fi" source=dhcp
@Rahmanism
Copy link

Rahmanism commented Aug 20, 2021

I've written something for Windows. You can create multiple profiles with different IP/DNS configurations. It will stay in your system tray, so you can easily select another profile if you want.

You can add a profile for shekan, and choose it whenever you like.

https://github.com/Rahmanism/NetChanger

@Jalalx
Copy link
Author

Jalalx commented Aug 21, 2021

Thank you @Rahmanism for sharing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment