forked from jkloetzke/nanodnsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnanodnsd.conf
69 lines (53 loc) · 2.3 KB
/
nanodnsd.conf
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Example NanoDNS configuration file. You must fill in at least the domain=,
# nameserver= and email= keys because they are required to run a DNS server to
# begin with. Everything else is optional and commented out keys show the
# built-in default values.
# Example configuration for a domain where all dynamic hosts are announced as
# "<host>.dyn.mydomain.test". The name server itself is reachable via
# "ns.mydomain.test" and administered by "hostmaster@mydomain.test". Note that
# NanoDNS already takes care of correctly escaping the email address in the
# RNAME SOA record.
[server]
domain=dyn.mydomain.test
nameserver=ns.mydomain.test
email=hostmaster@mydomain.test
# Queries over UDP are rate limited to mitigate DNS amplification attacks.
# Queries over TCP or with valid cookies (RFC7873) are not affected by the rate
# limiting.
#rate_limit=1000 # requests per second.
# Interval of statistics dump. Set to 0 to disable printing of statistics.
#stats_interval=1d
# Optionally run as different user. If not set the user/group is left
# unchanged. This option is unnecessary when running NanoDNS as systemd service
# because systemd will already take care of the privilege dropping.
#user=
#group=
[udp]
# DNS UDP port. You most probably want to keep this unchanged. This setting is
# without effect if the daemon is activated as systemd service.
#port=53
[tcp]
# DNS TCP port. You most probably want to keep this unchanged. This setting is
# without effect if the daemon is activated as systemd service.
#port=53
# The number and duration of DNS TCP connections can be limited to prevent
# resource exhaustion attacks. Usually the defaults should suffice.
#connections=16
#timeout=3s
[http]
# HTTP port for updates of dynamic hosts.
#port=80
# The number and duration of HTTP connections can be limited to prevent
# resource exhaustion attacks. Usually the defaults should suffice.
#connections=16
#timeout=3s
###############################################################################
# Dynamic host configuration. Every host must be declared in a separate section.
# Usually each entry has a token that must be given on the update request. Entries
# without a token cannot be dynamically updated at all. For such static entries the
# A and AAAA records can be set here.
#[@home]
#token=
#expire=1d
#a=127.0.0.1
#aaaa=::1