diff --git a/docs/configuration.md b/docs/configuration.md index 7a536ff824..c54cfeb8ea 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -62,6 +62,7 @@ hide: | address | 指定域名 IP 地址 | 无 | address [/[*\|-.]domain/][ip1[,ip2,...]\|-\|-4\|-6\|#\|#4\|#6]
- 表示忽略此规则
# 表示返回 SOA
4 表示 IPv4
6 表示 IPv6
* 开头表示通配
- 开头表示主域名
`*` 和 `-` 只能在域名开头,其他位置不生效。
不指定域名表示对所有域名生效。| address /www.example.com/1.2.3.4
address /www.example.com/::1
address /example.com/1.2.3.4,5.6.7.8
address /\*-a.example.com/
address /\*.example.com/
address /-.example.com/
address #6
address -6| | cname | 指定域名别名 | 无 | cname /domain/target
- 表示忽略此规则
指定对应域名的cname | cname /www.example.com/cdn.example.com | | srv-record | 指定SRV记录 | 无 | srv-record /domain/[target][,port][,priority][,weight] | srv-record /_vlmcs._tcp/example.com,1688,1,1| +| https-record | 指定HTTPS记录 | 无 | https-record /domain/[target=][,port=][,priority=][,ech=][,ipv4hint=][,ipv6hint=][,alpn=][,noipv4hint][,noipv6hint][#][-]:
[target]: target参数
[port]: port参数
[priority]: priority参数
[ech]: ECH参数
[alpn]: alph参数
[ipv4hint]: IPV4地址
[ipv6hint]: IPV6地址
[noipv4hint]:过滤IPV4地址
[noipv6hint]: 过滤IPV6地址
# 表示返回SOA
- 表示忽略规则| https-record /example.com/ech="aaa"
https-record /example.com/alpn="h2,http/1.1"
https-record noipv4hint,noipv6hint
https-record #
https-record /example.com/-| | ddns-domain | 指定DDNS域名 | 无 | ddns-domain doamin.com, 用于将指定的域名解析为smartdns所在主机IP地址。| ddns-domain example.com | dns64 | DNS64转换 | 无 | dns64 ip-prefix/mask
ipv6前缀和掩码 | dns64 64:ff9b::/96 | | mdns-lookup | 是否启用mDNS查询 | no | [yes\|no] | mdns-lookup yes| diff --git a/en/docs/configuration.md b/en/docs/configuration.md index 0536bc1039..837fca0e2f 100644 --- a/en/docs/configuration.md +++ b/en/docs/configuration.md @@ -58,6 +58,7 @@ hide: |address|Domain IP address|None|address /[*\|-]domain/[ip1[,ip2,...]\|-\|-4\|-6\|#\|#4\|#6]
`-` for ignore this rule.
`#` for return SOA
`4` for IPV4
`6` for IPV6
`*` at the beginning means wildcard
`-` means the main domain name at the beginning
`*` and `-` can only be at the beginning of the domain name, other positions will not take effect.
If no domain name is specified, it applies to all domain names.| address /www.example.com/1.2.3.4
address /www.example.com/::1
address /example.com/1.2.3.4,5.6.7.8
address /\*-a.example.com/
address /\*.example.com/
address /-.example.com/
address #6
address #4 |cname|set cname to domain| None | cname /domain/target
- for ignore this rule.
set cname to domain. | cname /www.example.com/cdn.example.com | |srv-record| add srv record | None | srv-record /domain/[target][,port][,priority][,weight] | srv-record /_vlmcs._tcp/example.com,1688,1,1| +| https-record | Specify HTTPS record | None | https-record /domain/[target=][,port=][,priority=][,ech=][,ipv4hint=][,ipv6hint=][,alpn=][,noipv4hint][,noipv6hint][#][-]:
[target]: target parameter
[port]: port parameter
[priority]: priority parameter
[ech]: ECH parameter
[alpn]: alph parameter
[ipv4hint]: IPV4 address
[ipv6hint]: IPV6 address
[noipv4hint]: Filter IPV4 addresses
[noipv6hint]: Filter IPV6 addresses
# indicates return SOA
- indicates ignore rule| https-record /example.com/ech="aaa"
https-record /example.com/alpn="h2,http/1.1"
https-record noipv4hint,noipv6hint
https-record #
https-record /example.com/-| |ddns-domain|Specifies the DDNS domain name |None|ddns-domain domainin.com, used to resolve the specified domain name to the IP address of the host where smartdns resides. | ddns-domain example.com |dns64|dns64 translation | None | dns64 ip-prefix/mask
ipv6 prefix and mask. | dns64 64:ff9b::/96 | |mdns-lookup|Enable mDNS lookup|no|[yes\|no]|mdns-lookup yes|