Skip to content

Configuration

All microservices will be configured in TOML format. All configurations must be adopted to your requirements. The packages include default configs.

Primary

API Proxy

/etc/pdns-api-proxy/config.toml
 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
[Service]
URL = "http://localhost:30000"
Cert = "/home/pdns-api-proxy/cert.pem"
Key = "/home/pdns-api-proxy/key.pem"
Tags = ["internal", "primary-node", "proxy"]
    [ServiceMetaData]

# very verbose output, journal may rotate often
[Log]
DEBUG = true

[Prometheus]
Address = "localhost:9502" # turn off by set empty string

[MessageBroker]
URL = "nats://localhost:4222"
Username = "" # optional
Password = "" # optional

[PowerDNS]
URL = "http://localhost:8081"

[ZoneEventTopics]
Add = "zone.add"
Mod = "zone.modified"
Del = "zone.delete"

[Secondaries]
Hosts = [
sec01.example.org,
sec02.example.org,
]

Health Checker

/etc/pdns-health-checker/config.toml
 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
[Service]
URL = "http://localhost:30001"
Tags = ["internal", "primary-node", "health", "check"]
    [ServiceMetaData]

# very verbose output, journal may rotate often
[Log]
DEBUG = true

[Prometheus]
Address = "localhost:9501" # turn off by set empty string

[MessageBroker]
URL = "nats://localhost:4222"
Username = "" # optional
Password = "" # optional

[PowerDNS]
URL = "http://localhost:8081"
APIToken = "0000"
ServerID = "localhost"

[ZoneEventTopics]
Add = "zone.add"
Mod = "zone.modified"
Del = "zone.delete"

[ZoneStateTopics]
Prefix = "zonestate."

[HealthChecks]
EventCheckWaitTime = "20s"
ActiveZoneSecondaryRefreshIntervall = "5m"
PeriodicalCheckIntervall = "15m"
NSEC3CheckIntervall = "15m"

[Secondaries]
Hosts = [
sec01.example.org,
sec02.example.org,
]

Zone Provider

/etc/pdns-zone-provider/config.toml
 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
[Service]
URL = "http://localhost:30001"
Tags = ["external", "primary-node", "proxy"]
    [ServiceMetaData]

# very verbose output, journal may rotate often
[Log]
DEBUG = true

[Prometheus]
Address = "localhost:9500" # turn off by set empty string

[MessageBroker]
URL = "nats://localhost:4222"
Username = "" # optional
Password = "" # optional

[PowerDNS]
URL = "http://localhost:8081"
APIToken = "0000"
ServerID = "localhost"
AXFRTimeout = "2s"
AXFRAddress = "127.0.0.1:53"

[ZoneDataTopics]
Wildcard = "zonedata.*"

[Secondaries]
Hosts = [
sec01.example.org,
sec02.example.org,
]

Secondary

Secondary Syncer

/etc/pdns-secondary-syncer/config.toml
 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
[Service]
URL = "http://localhost:30002"
Tags = ["internal", "secondary-node", "eu-west"]
    [ServiceMetaData]

# very verbose output, journal may rotate often
[Log]
DEBUG = true

[Prometheus]
Address = "localhost:9503" # turn off by set empty string

[MessageBroker]
URL = "nats://localhost:4222"
Username = "" # optional
Password = "" # optional

[PowerDNS]
URL = "http://localhost:18081"
APIToken = "0000"
ServerID = "localhost"
EventDelay = "0s"
APIWorker = 4

[AXFRPrimary]
Address = "127.0.0.1:20102"

[ZoneEventTopics]
Add = "zone.add"
Mod = "zone.modified"
Del = "zone.delete"

[ZoneDataTopics]
Prefix = "zonedata."

[ZoneStateTopics]
Prefix = "zonestate."

[Secondaries]
Hosts = [
sec01.example.org,
sec02.example.org,
]