configuration: add address page
This commit is contained in:
@@ -9,7 +9,7 @@ DNS64 is used to support accessing IPV4 websites in a pure IPV6 network, smartdn
|
||||
|
||||
## Configuration Steps
|
||||
|
||||
1. Use `dns64 ip/mask` to configure the proxy server
|
||||
1. Use `dns64 ip/mask` to configure alias name.
|
||||
|
||||
```shell
|
||||
dns64 64:ff9b::/96
|
||||
|
||||
37
en/docs/config/domain-address.md
Normal file
37
en/docs/config/domain-address.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
hide:
|
||||
- toc
|
||||
---
|
||||
|
||||
# Specify Domain Address
|
||||
|
||||
In addition to blocking ads, `address` can also be used to specify the IP address of a domain.
|
||||
|
||||
## Basic Configuration Method
|
||||
|
||||
1. Use the `address /domain/ip` option to specify the IP, such as:
|
||||
|
||||
```shell
|
||||
address /example.com/1.2.3.4
|
||||
```
|
||||
|
||||
In the `address` option:
|
||||
|
||||
* `/domain/` uses suffix matching algorithm, including subdomains.
|
||||
* `ip`: can be an IPv6 or IPv4 address.
|
||||
|
||||
1. Specify IPv6
|
||||
|
||||
```shell
|
||||
address /example.com/::1
|
||||
```
|
||||
|
||||
## Automatically Expand PTR Records Corresponding to address
|
||||
|
||||
If you want to expand the PTR record corresponding to the above `address`, you can use the `expand-ptr-from-address` switch to turn on automatic expansion. The `expand-ptr-from-address` parameter can be set repeatedly, and the parameter takes effect for the `address` set after it.
|
||||
|
||||
```shell
|
||||
expand-ptr-from-address yes
|
||||
address /example.com/1.2.3.4
|
||||
expand-ptr-from-address no
|
||||
```
|
||||
Reference in New Issue
Block a user