-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.toml
36 lines (28 loc) · 938 Bytes
/
example-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
# SPDX-FileCopyrightText: 2024 Luflosi <[email protected]>
# SPDX-License-Identifier: CC0-1.0
[listen]
ip = "::1"
port = 9841
[update_program]
bin = "nsupdate"
args = ["-k", "/etc/bind/ddns.key"]
initial_stdin = "server ::1\n"
stdin_per_zone_update = "send\n"
final_stdin = "quit\n"
[update_program.ipv4]
stdin = "update delete {domain}. IN A\nupdate add {domain}. {ttl} IN A {ipv4}\n"
[update_program.ipv6]
stdin = "update delete {domain}. IN AAAA\nupdate add {domain}. {ttl} IN AAAA {ipv6}\n"
[users.alice]
# 123456
hash = "$argon2id$v=19$m=65536,t=3,p=1$ZFRHDlJOQ3UNQRN7em14R08FIRE$0SqSQRj45ZBz1MfCPq9DVMWt7VSl96m7XtW6maIcUB0"
[users.alice.domains."example.org"]
ttl = 60
ipv6prefixlen = 48
ipv6suffix = "0:0:0:1::5"
[users.bob]
hash = "$argon2id$v=19$m=65536,t=3,p=1$AllDfFxYDUlcTCRZASwpRiUEYSQ$dEq2jvaPMEe3wVoX6hqXuIDa5AUf9e4Ufy84nqi6tFk"
[users.bob.domains."sub.example.org"]
ttl = 60
ipv6prefixlen = 128
ipv6suffix = "::"