Skip to content

Commit

Permalink
docs: Google DNS should use dns.google instead of dns.google.com (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Sep 29, 2024
1 parent 2a8b537 commit cb57bd5
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion component/routing/domain_matcher/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ routing {
domain(suffix: test-ipv6.com)->direct
domain(geosite:bing)->us
domain(_https._tcp.mirrors.ustc.edu.cn)->us
domain(full:dns.google.com) -> direct
domain(full:dns.google) -> direct
domain(geosite:category-ads-all) -> block
domain(geosite:cn) -> direct
}`)
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Global struct {
//DirectTcpCheckUrl string `mapstructure:"direct_tcp_check_url" default:"http://www.qualcomm.cn/generate_204"`
TcpCheckUrl []string `mapstructure:"tcp_check_url" default:"http://cp.cloudflare.com,1.1.1.1,2606:4700:4700::1111"`
TcpCheckHttpMethod string `mapstructure:"tcp_check_http_method" default:"HEAD"` // Use 'HEAD' because some server implementations bypass accounting for this kind of traffic.
UdpCheckDns []string `mapstructure:"udp_check_dns" default:"dns.google.com:53,8.8.8.8,2001:4860:4860::8888"`
UdpCheckDns []string `mapstructure:"udp_check_dns" default:"dns.google:53,8.8.8.8,2001:4860:4860::8888"`
CheckInterval time.Duration `mapstructure:"check_interval" default:"30s"`
CheckTolerance time.Duration `mapstructure:"check_tolerance" default:"0"`
LanInterface []string `mapstructure:"lan_interface"`
Expand Down
2 changes: 1 addition & 1 deletion docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ subscription {
# See https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/dns.md for full examples.
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down
6 changes: 3 additions & 3 deletions docs/en/configuration/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dns {
# If dial_mode is "ip", the upstream DNS answer SHOULD NOT be polluted, so domestic public DNS is not recommended.

alidns: 'udp://dns.alidns.com:53'
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
}
# The routing format of 'request' and 'response' is similar with section 'routing'.
# See https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/routing.md
Expand Down Expand Up @@ -76,7 +76,7 @@ dns {
# Use alidns for China mainland domains and googledns for others.
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand All @@ -96,7 +96,7 @@ dns {
# Use alidns for all DNS queries and fallback to googledns if pollution result detected.
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down
12 changes: 6 additions & 6 deletions docs/en/configuration/external-dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ If you use a external DNS like AdguardHome, you could refer to the following gui

## External DNS on localhost

If you set up an external DNS on localhost, you may want to let the DNS queries to `dns.google.com` proxied. For example, if you have the following configuration in AdguardHome:
If you set up an external DNS on localhost, you may want to let the DNS queries to `dns.google` proxied. For example, if you have the following configuration in AdguardHome:

```
Listen on: the same machine with dae, port 53.
China mainland: udp://223.5.5.5:53
Others: https://dns.google.com/dns-query
Others: https://dns.google/dns-query
```

You should configure dae as follows:
Expand All @@ -26,7 +26,7 @@ You should configure dae as follows:
pname(AdGuardHome) && l4proto(udp) && dport(53) -> must_direct
```

And make sure domain `dns.google.com` will be proxied in routing rules.
And make sure domain `dns.google` will be proxied in routing rules.

3. Add upstream and request to section "dns".

Expand All @@ -53,13 +53,13 @@ You should configure dae as follows:

## External DNS on another machine in LAN

If you set up a external DNS on another machine in LAN, you may want to let the DNS queries to `dns.google.com` proxied. For example, if you have following configuration in `AdguardHome`:
If you set up a external DNS on another machine in LAN, you may want to let the DNS queries to `dns.google` proxied. For example, if you have following configuration in `AdguardHome`:

```
Listen on: 192.168.30.3:53 (mac address: 8c:16:45:36:1c:5a)

China mainland: udp://223.5.5.5:53
Others: https://dns.google.com/dns-query
Others: https://dns.google/dns-query
```

You should configure dae as follows:
Expand All @@ -74,7 +74,7 @@ You should configure dae as follows:
# mac(8c:16:45:36:1c:5a) && l4proto(udp) && dport(53) -> must_direct
```

And make sure domain `dns.google.com` will be proxied in routing rules.
And make sure domain `dns.google` will be proxied in routing rules.

3. Add upstream and request to section "dns".

Expand Down
2 changes: 1 addition & 1 deletion docs/en/configuration/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fallback: my_group
### Domain rule
domain(suffix: v2raya.org) -> my_group
# equals to domain(v2raya.org) -> my_group
domain(full: dns.google.com) -> my_group
domain(full: dns.google) -> my_group
domain(keyword: facebook) -> my_group
domain(regex: '\.goo.*\.com$') -> my_group
domain(geosite:category-ads) -> block
Expand Down
4 changes: 2 additions & 2 deletions docs/en/configuration/separate-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ global {
log_level: warn
tcp_check_url: 'http://cp.cloudflare.com'
udp_check_dns: 'dns.google.com:53'
udp_check_dns: 'dns.google:53'
check_interval: 600s
check_tolerance: 50ms
Expand All @@ -55,7 +55,7 @@ global {
dns {
upstream {
alidns: 'udp://dns.alidns.com:53'
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
}
routing {
Expand Down
2 changes: 1 addition & 1 deletion docs/en/tutorials/run-on-macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ subscription {
# See https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/dns.md for full examples.
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ subscription {
# 更多的 DNS 样例见 https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/dns.md
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down Expand Up @@ -234,7 +234,7 @@ routing {
```shell
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/configuration/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dns {
# 若 dial_mode 设为 'ip',请确保上游 DNS 无污染,不推荐使用国内公共 DNS。

alidns: 'udp://dns.alidns.com:53'
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
}
# 'request' 和 'response' 的 routing 格式和全局的 'routing' 类似。
# 参考 https://github.com/daeuniverse/dae/blob/main/docs/zh/configuration/routing.md
Expand Down Expand Up @@ -75,7 +75,7 @@ dns {
# 对于中国大陆域名使用 alidns,其他使用 googledns 查询。
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand All @@ -95,7 +95,7 @@ dns {
# 默认使用 alidns,如果疑似污染使用 googledns 重查。
dns {
upstream {
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/configuration/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fallback: my_group
### 域名规则
domain(suffix: v2raya.org) -> my_group
# 相当于 domain(v2raya.org) -> my_group
domain(full: dns.google.com) -> my_group
domain(full: dns.google) -> my_group
domain(keyword: facebook) -> my_group
domain(regex: '\.goo.*\.com$') -> my_group
domain(geosite:category-ads) -> block
Expand Down
8 changes: 4 additions & 4 deletions example.dae
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ global {
# TCP DNS connectivity of nodes.
# First is URL, others are IP addresses if given.
# This DNS should have both IPv4 and IPv6 if you have double stack in local.
#udp_check_dns: 'dns.google.com:53'
udp_check_dns: 'dns.google.com:53,8.8.8.8,2001:4860:4860::8888'
#udp_check_dns: 'dns.google:53'
udp_check_dns: 'dns.google:53,8.8.8.8,2001:4860:4860::8888'

check_interval: 30s

Expand Down Expand Up @@ -152,7 +152,7 @@ dns {
# If dial_mode is "ip", the upstream DNS answer SHOULD NOT be polluted, so domestic public DNS is not recommended.

alidns: 'udp://dns.alidns.com:53'
googledns: 'tcp+udp://dns.google.com:53'
googledns: 'tcp+udp://dns.google:53'
}
routing {
# According to the request of dns query, decide to use which DNS upstream.
Expand Down Expand Up @@ -231,7 +231,7 @@ group {
# Override tcp_check_http_method in global
#tcp_check_http_method: HEAD
# Override udp_check_dns in global
#udp_check_dns: 'dns.google.com:53,8.8.8.8,2001:4860:4860::8888'
#udp_check_dns: 'dns.google:53,8.8.8.8,2001:4860:4860::8888'
# Override check_interval in global
#check_interval: 30s
# Override check_tolerance in global
Expand Down

0 comments on commit cb57bd5

Please sign in to comment.