forked from arkanis/minidyndns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yml
57 lines (53 loc) · 2.11 KB
/
config.example.yml
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
# The domain hosted by this DNS server. It will only reply to requests
# regarding subdomains of this domain. Everything is ignored completely.
domain: dyn.example.com
# Time to live (TTL) of replies send by the DNS server. This is the time
# in seconds an reply stays valid. The higher the value the longer clients
# might take to figure out that an IP address has changed. Small values
# will force a DNS request on every page access. This is ok for seldomly
# used sites but a very bad idea for high traffic sites.
ttl: 15
# IP and port the DNS server runs on
dns:
port: 53
ip: 0.0.0.0
# IP and port the HTTP server runs on
http:
port: 80
ip: 0.0.0.0
https:
port: 443
ip: 0.0.0.0
cert: server_cert.pem
priv_key: server_priv_key.key
# To disable HTTPS set it to false
#https: false
# Maximum number of seconds the server waits for clients to send
# the entire HTTP request (to kill requests from stupid routers that
# keep the connections open forever).
http_timeout: 5.0
# The server needs to be started as root to bind to privileged ports
# (everything below 1024). In that case it will drop privileges after
# startup and run under the user and group specified here.
# Make sure that this user can write the database file (default db.yml),
# otherwise the server can't update the database.
user: nobody
group: nogroup
# Start of authority information. This is stuff others like to know about
# this DNS server. The serial is taken from the DB.
soa:
# The domain name of our DNS server itself
nameserver: ns.example.com
# Mail address of the person responsible for the DNS server
mail: [email protected]
# Time to live in seconds of this SOA record. It won't change often so
# it can be a rather large value (e.g. 86400 = 1 day).
ttl: 86400
# Stuff for secondary DNS servers. Since we're just a small DNS server
# secondaries don't make sense. So just the default values.
refresh_time: 86400
retry_time: 7200
expire_time: 3600000
# Time not found responses (NXDOMAIN) can be cached. This is the maximum
# time a newly added domain might need to be available world wide.
negative_caching_ttl: 172800