config: add some config guide

This commit is contained in:
Nick Peng
2023-03-10 23:53:17 +08:00
parent dcb680ae88
commit 39efbda313
14 changed files with 507 additions and 184 deletions

24
docs/config/proxy.md Normal file
View File

@@ -0,0 +1,24 @@
---
hide:
- toc
---
# 通过代理查询
smartdns支持通过代理服务器进行查询支持的代理服务器有socks5和http代理服务器。socks5支持udp和tcp类型的代理而http不支持udp代理注意区分。
## 配置步骤
1. 使用`proxy-server`配置代理服务器
```shell
proxy-server socks5://1.2.3.4 -name socks5
```
1. 使用`-proxy`参数配置server使用代理服务器
```shell
server 8.8.8.8 -proxy socks5
```
注意proxy-server的`-name`和server的`-proxy`须为同一个名称。