Skip to content

Commit f74e3d6

Browse files
committed
refactor README, name
1 parent 0adf1ec commit f74e3d6

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

DNSwitch.exe

-3.36 MB
Binary file not shown.

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,23 @@ DNSwitch is a cross-platform command-line tool for easily managing and switching
1313

1414
## Requirements
1515

16-
- Go 1.23.2
16+
- Go 1.23.4
1717
- Administrator/root privileges (for changing DNS settings)
1818

1919
## Installation
2020

21+
You can install DNSwitch using one of the following methods:
22+
23+
### Method 1: Using go install (Recommended)
24+
25+
```
26+
go install github.com/naghinezhad/DNSwitch@latest
27+
```
28+
29+
This will install the latest version of DNSwitch directly to your `$GOPATH/bin` or `$GOBIN` directory.
30+
31+
### Method 2: Build from source
32+
2133
1. Clone the repository:
2234

2335
```
@@ -40,13 +52,23 @@ DNSwitch is a cross-platform command-line tool for easily managing and switching
4052
Run the program with administrator/root privileges:
4153

4254
- On Windows:
43-
Right-click on the Command Prompt or PowerShell and select "Run as administrator", then navigate to the program directory and run:
55+
Right-click on the Command Prompt or PowerShell and select "Run as administrator", then run:
4456

57+
```
58+
DNSwitch
59+
```
60+
61+
If you built from source, navigate to the program directory and run:
4562
```
4663
.\DNSwitch.exe
4764
```
4865

4966
- On Linux/macOS:
67+
```
68+
sudo DNSwitch
69+
```
70+
71+
If you built from source, navigate to the program directory and run:
5072
```
5173
sudo ./DNSwitch
5274
```
@@ -119,4 +141,4 @@ DNSwitch was created to simplify the process of changing DNS settings across dif
119141

120142
If you encounter any issues or have questions, please open an issue on the [GitHub repository](https://github.com/naghinezhad/DNSwitch/issues).
121143

122-
Thank you for using DNSwitch!
144+
Thank you for using DNSwitch!

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module DNSwitch
1+
module github.com/naghinezhad/DNSwitch
22

33
go 1.23.4

0 commit comments

Comments
 (0)