Skip to content

Commit 117bb36

Browse files
authored
Update log.md
1 parent c5cf359 commit 117bb36

File tree

1 file changed

+5
-36
lines changed

1 file changed

+5
-36
lines changed

docs/en/config/log.md

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -50,45 +50,14 @@ The log level for error logs, indicating the information that needs to be record
5050
5151
Log DNS queries made by built-in [DNS clients](./dns.md) to the access log. Example log record: `DOH//doh.server got answer: domain.com -> [ip1, ip2] 2.333ms`.
5252

53-
::: tip TIP 1
54-
Xray doesn't perform all DNS queries via its built-in clients. Therefore, enabling this option doesn't mean that all DNS queries performed by Xray will be logged.
55-
:::
56-
57-
::: tip TIP 2
58-
DNS queries made by built-in [DNS clients](./dns.md) are also logged to the error log (with "Info" level) even if this option is disabled.
59-
:::
53+
::: tip
54+
1. Xray doesn't perform all DNS queries via its built-in clients. Therefore, enabling this option doesn't mean that all DNS queries performed by Xray will be logged.
6055

61-
::: tip TIP 3
62-
FakeDNS client queries are never logged to the access log.
56+
2. DNS queries made by built-in [DNS clients](./dns.md) are also logged to the error log (with "Info" level) even if this option is disabled.
57+
3.
58+
4. FakeDNS client queries are never logged to the access log.
6359
:::
6460

65-
Below is a client config example that allows you to see DNS logs. No server needed.
66-
67-
```json
68-
{
69-
"log": {
70-
"dnsLog": true
71-
},
72-
"dns": {
73-
"servers": ["https://1.1.1.1/dns-query"]
74-
},
75-
"inbounds": [
76-
{
77-
"listen": "0.0.0.0",
78-
"port": 1984,
79-
"protocol": "socks"
80-
}
81-
],
82-
"outbounds": [
83-
{
84-
"protocol": "freedom",
85-
"settings": {
86-
"domainStrategy": "UseIPv4"
87-
}
88-
}
89-
]
90-
}
91-
```
9261

9362
> `maskAddress`: "quarter" | "half" | "full"
9463

0 commit comments

Comments
 (0)