You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,23 @@ DNSwitch is a cross-platform command-line tool for easily managing and switching
13
13
14
14
## Requirements
15
15
16
-
- Go 1.23.2
16
+
- Go 1.23.4
17
17
- Administrator/root privileges (for changing DNS settings)
18
18
19
19
## Installation
20
20
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
+
21
33
1. Clone the repository:
22
34
23
35
```
@@ -40,13 +52,23 @@ DNSwitch is a cross-platform command-line tool for easily managing and switching
40
52
Run the program with administrator/root privileges:
41
53
42
54
- 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:
44
56
57
+
```
58
+
DNSwitch
59
+
```
60
+
61
+
If you built from source, navigate to the program directory and run:
45
62
```
46
63
.\DNSwitch.exe
47
64
```
48
65
49
66
- On Linux/macOS:
67
+
```
68
+
sudo DNSwitch
69
+
```
70
+
71
+
If you built from source, navigate to the program directory and run:
50
72
```
51
73
sudo ./DNSwitch
52
74
```
@@ -119,4 +141,4 @@ DNSwitch was created to simplify the process of changing DNS settings across dif
119
141
120
142
If you encounter any issues or have questions, please open an issue on the [GitHub repository](https://github.com/naghinezhad/DNSwitch/issues).
0 commit comments