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

34
docs/config/block-ipv6.md Normal file
View File

@@ -0,0 +1,34 @@
---
hide:
- toc
---
# 禁用IPV6
目前IPV6已经进入千家万户但部分情况下需要禁用IPV6地址smartdns支持如下方式禁用IPV6地址。
1. 方法一完全禁用IPV6
```shell
force-AAAA-SOA yes
```
1. 方法二禁用特定域名的IPV6
```shell
address /example.com/#6
```
## 其他查询请求的禁用
smartdns支持对其他查询请求的禁用对应参数为force-qtype-SOA
```shell
force-qtype-SOA 28
```
force-qtype-SOA参数后为DNS的类型。具体的类型可以查询[IANA说明](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4)
## 附加说明
smartdns具备自动检测IPV6环境的能力如果网络环境不支持IPV6则会自动禁用IPV6相关的优化功能。