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
$ go env -w GOPROXY=https://goproxy.cn,direct #可选,国内机器不能上github则需要执行此处以设置{代}{理}
25
-
$ go mod download github.com/miekg/dns # 拉取需要的库
26
42
```
27
43
28
44
而后`go run main.go`即可看到如下字样,说明已经可以正常运行。
29
45
30
46
```shell
31
47
[root@centos dnslog] go run main.go
32
-
2021/03/24 13:58:54 Dnslog Platform requires a domain name parameter, such as `dns1.tk` or `go.dns1.tk`, And check your domain's ns server point to this server
33
-
exit status 1
48
+
2021/12/14 12:30:53 Will cname to www.baidu.com.
49
+
2021/12/14 12:30:53 OK, Your Dnslog Domain is : ns.bypass.com.
50
+
2021/12/14 12:30:53 Let's Begin!
51
+
2021/12/14 12:30:53 OK, Will listen in 0.0.0.0:8000
34
52
```
35
-
36
-
`go run main.go yourdomain` 可先在shell前台运行,看功能是否正常使用与检查数据存放目录是否成功创建。如果没问题的话 直接 `nohup go run main.go yourdomain &`
53
+
`go run main.go` 可先在shell前台运行,看功能是否正常使用与检查数据存放目录是否成功创建。如果没问题的话 直接 `nohup go run main.go &`
37
54
38
55
## 使用
39
56
@@ -69,15 +86,7 @@ PS:当然,你也可以通过 go build 打包成可执行文件进行跨平
0 commit comments