-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaltdns.conf.example
More file actions
48 lines (38 loc) · 1.03 KB
/
altdns.conf.example
File metadata and controls
48 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# AltDns Configuration File
# Microkernel DNS resolver - MVP version
# Author: AnmiTaliDev <annmitali198@gmail.com>
# License: Apache-2.0
[resolver]
# Address and port to listen on
# Default: 127.0.0.1:53
listen = 127.0.0.1:53
# Upstream DNS server to forward queries to
# Default: 8.8.8.8:53 (Google DNS)
# Other options: 1.1.1.1:53 (Cloudflare), 9.9.9.9:53 (Quad9)
upstream = 8.8.8.8:53
# Maximum number of entries to keep in cache
# Default: 1000
cache_size = 1000
# Cache TTL in seconds (time to live)
# Default: 300 (5 minutes)
cache_ttl = 300
# Timeout for upstream queries in seconds
# Default: 5
timeout = 5
[logging]
# Log level: trace, debug, info, warn, error
# Default: info
level = info
# Log to file (optional)
# If not specified, logs go to stdout
# file = /var/log/altdns/altdns.log
[performance]
# Maximum concurrent queries to process
# Default: 1000
max_concurrent = 1000
# Buffer size for UDP packets
# Default: 512 (standard DNS packet size)
buffer_size = 512
# Enable/disable query statistics
# Default: true
stats = true