Skip to content

Commit

Permalink
Add https-record option doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Jan 29, 2024
1 parent df6a81d commit ccb020f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ hide:
| address | 指定域名 IP 地址 || address [/[*\|-.]domain/][ip1[,ip2,...]\|-\|-4\|-6\|#\|#4\|#6] <br />- 表示忽略此规则 <br /># 表示返回 SOA <br />4 表示 IPv4 <br />6 表示 IPv6 <br /> * 开头表示通配<br />- 开头表示主域名<br /> `*``-` 只能在域名开头,其他位置不生效。<br />不指定域名表示对所有域名生效。| address /www.example.com/1.2.3.4<br />address /www.example.com/::1 <br />address /example.com/1.2.3.4,5.6.7.8 <br /> address /\*-a.example.com/ <br /> address /\*.example.com/ <br > address /-.example.com/ <br /> address #6 <br /> address -6|
| cname | 指定域名别名 || cname /domain/target <br />- 表示忽略此规则 <br />指定对应域名的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][#][-]:<br />[target]: target参数<br />[port]: port参数<br />[priority]: priority参数<br />[ech]: ECH参数<br />[alpn]: alph参数<br />[ipv4hint]: IPV4地址<br />[ipv6hint]: IPV6地址<br />[noipv4hint]:过滤IPV4地址<br />[noipv6hint]: 过滤IPV6地址 <br/> # 表示返回SOA<br /> - 表示忽略规则| https-record /example.com/ech="aaa"<br /> https-record /example.com/alpn="h2,http/1.1"<br />https-record noipv4hint,noipv6hint<br /> https-record # <br /> https-record /example.com/-|
| ddns-domain | 指定DDNS域名 | 无 | ddns-domain doamin.com, 用于将指定的域名解析为smartdns所在主机IP地址。| ddns-domain example.com
| dns64 | DNS64转换 || dns64 ip-prefix/mask <br /> ipv6前缀和掩码 | dns64 64:ff9b::/96 |
| mdns-lookup | 是否启用mDNS查询 | no | [yes\|no] | mdns-lookup yes|
Expand Down
1 change: 1 addition & 0 deletions en/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ hide:
|address|Domain IP address|None|address /[*\|-]domain/[ip1[,ip2,...]\|-\|-4\|-6\|#\|#4\|#6]<br />`-` for ignore this rule. <br />`#` for return SOA <br />`4` for IPV4 <br />`6` for IPV6 <br /> `*` at the beginning means wildcard<br />`-` means the main domain name at the beginning<br /> `*` and `-` can only be at the beginning of the domain name, other positions will not take effect. <br /> If no domain name is specified, it applies to all domain names.| address /www.example.com/1.2.3.4<br />address /www.example.com/::1 <br />address /example.com/1.2.3.4,5.6.7.8<br /> address /\*-a.example.com/ <br /> address /\*.example.com/ <br /> address /-.example.com/ <br /> address #6 <br /> address #4
|cname|set cname to domain| None | cname /domain/target <br />- for ignore this rule. <br />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][#][-]:<br />[target]: target parameter<br />[port]: port parameter<br />[priority]: priority parameter<br />[ech]: ECH parameter<br />[alpn]: alph parameter<br />[ipv4hint]: IPV4 address<br />[ipv6hint]: IPV6 address<br />[noipv4hint]: Filter IPV4 addresses<br />[noipv6hint]: Filter IPV6 addresses <br/> # indicates return SOA<br /> - indicates ignore rule| https-record /example.com/ech="aaa"<br /> https-record /example.com/alpn="h2,http/1.1"<br />https-record noipv4hint,noipv6hint<br /> https-record # <br /> 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 <br /> ipv6 prefix and mask. | dns64 64:ff9b::/96 |
|mdns-lookup|Enable mDNS lookup|no|[yes\|no]|mdns-lookup yes|
Expand Down

0 comments on commit ccb020f

Please sign in to comment.