https://github.com/moeeinaali/shecan
Set or Reset Shekan DNS Servers using Python
https://github.com/moeeinaali/shecan
dns powershell python
Last synced: 12 months ago
JSON representation
Set or Reset Shekan DNS Servers using Python
- Host: GitHub
- URL: https://github.com/moeeinaali/shecan
- Owner: MoeeinAali
- License: mit
- Created: 2024-03-30T20:05:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-30T20:16:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T00:52:03.366Z (about 1 year ago)
- Topics: dns, powershell, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Set or Reset DNS Servers using Python and PowerShell
This script allows you to set or reset DNS servers on your Windows system to connect to [Shecan](https://shecan.ir/) DNS using Python and PowerShell.
## Installation
1. Ensure you have Python installed on your system.
2. Clone this repository:
```bash
git clone https://github.com/MoeeinAali/SheCan/
```
3. Navigate to the project directory:
```bash
cd SheCan
```
4. Make sure you have **administrative privileges** to run the script.
## Usage
### Set DNS Servers
To set DNS servers to Shekan DNS addresses, run the script with the argument `1`. For example:
```bash
python SheCan.py 1
```
This will set the DNS servers to Shekan DNS addresses specified in the script.
### Reset DNS Servers
To reset DNS servers to obtain automatically, run the script with the argument `0`. For example:
```bash
python SheCan.py 0
```
This will reset DNS servers to obtain automatically.