so you need DNS...
by default at /etc/coredns/Corefile
. {
# still not sure if this works
forward . 8.8.8.8
# nice to have
loop
whoami
# logging
errors
log
}
you have a zone (in that bind format)
$TTL 30
@ IN SOA ns1 admin.example.com. 0000000001 30 30 360000 30
@ IN A 1.1.1.1
sub IN TXT "hello world"
your options are
discover zones from a directory and serve,
. {
auto example.com {
# zone files named db.(your.zone)
directory /path/to/directory
}
}
. {
auto {
# use non default regex
directory /path/to/directory regex[extract](zonename.*).from.file {1}
}
}
serve a single file, zone must be in the server block or in the file plugin else it probably won't work as expected
. {
file /path/to/zone/file example.com
}
example.com {
file /path/tp/zone/file
}
in for a world of pain
Corefile:
. {
dnssec {
key file /path/to/key1 /path/to/key/2
}
}
Corefile:
. {
file /path/to/signed/db.(your.zone).signed
sign /path/to/unsigned/your.unsigned.zone {
key file /path/to/key
directory /path/to/signed
}
}