mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-15 06:59:00 +03:00
Fix upstreams description
parent
1f53a2c33c
commit
a28b02640d
1 changed files with 15 additions and 11 deletions
|
@ -57,21 +57,25 @@ You can specify upstreams that will be used for a specific domain(s). We use the
|
|||
If one or more domains are specified, that upstream (`upstreamString`) is used only for those domains. Usually, it is used for private nameservers. For instance, if you have a nameserver on your network which deals with `xxx.internal.local` at `192.168.0.1` then you can specify `[/internal.local/]192.168.0.1`, and dnsproxy will send all queries to that nameserver. Everything else will be sent to the default upstreams (which are mandatory!).
|
||||
|
||||
1. An empty domain specification, // has the special meaning of "unqualified names only" ie names without any dots in them.
|
||||
2. More specific domains take precedence over less specific domains, so: `--upstream=[/host.com/]1.2.3.4 --upstream=[/www.host.com/]2.3.4.5` will send queries for *.host.com to 1.2.3.4, except *.www.host.com, which will go to 2.3.4.5
|
||||
3. The special server address '#' means, "use the standard servers", so: `--upstream=[/host.com/]1.2.3.4 --upstream=[/www.host.com/]#` will send queries for *.host.com to 1.2.3.4, except *.www.host.com which will be forwarded as usual.
|
||||
2. More specific domains take precedence over less specific domains, so: `[/host.com/]1.2.3.4` + `[/www.host.com/]2.3.4.5` will send queries for *.host.com to 1.2.3.4, except *.www.host.com, which will go to 2.3.4.5
|
||||
3. The special server address '#' means, "use the standard servers", so: `[/host.com/]1.2.3.4` + `[/www.host.com/]#` will send queries for *.host.com to 1.2.3.4, except *.www.host.com which will be forwarded as usual.
|
||||
|
||||
#### Examples
|
||||
|
||||
Sends queries for `*.local` domains to `192.168.0.1:53`. Other queries are sent to `8.8.8.8:53`.
|
||||
```
|
||||
./dnsproxy -u 8.8.8.8:53 -u [/local/]192.168.0.1:53
|
||||
```
|
||||
|
||||
Sends queries for `*.host.com` to `1.1.1.1:53` except for `*.maps.host.com` which are sent to `8.8.8.8:53` (as long as other queries).
|
||||
```
|
||||
./dnsproxy -u 8.8.8.8:53 -u [/host.com/]1.1.1.1:53 -u [/maps.host.com/]#`
|
||||
```
|
||||
*
|
||||
```
|
||||
8.8.8.8:53
|
||||
[/local/]192.168.0.1:53
|
||||
```
|
||||
Sends queries for `*.local` domains to `192.168.0.1:53`. Other queries are sent to `8.8.8.8:53`.
|
||||
|
||||
*
|
||||
```
|
||||
8.8.8.8:53
|
||||
[/host.com/]1.1.1.1:53
|
||||
[/maps.host.com/]#
|
||||
```
|
||||
Sends queries for `*.host.com` to `1.1.1.1:53` except for `*.maps.host.com` which are sent to `8.8.8.8:53` (as long as other queries).
|
||||
|
||||
<a id="friendly-names"></a>
|
||||
## Configuring clients friendly names
|
||||
|
|
Loading…
Add table
Reference in a new issue