Improve dnsconfig a bit

This commit is contained in:
Tobias Reisinger 2024-10-29 14:10:54 +01:00
parent 53d9cd1190
commit 6fadc45e24
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 20 additions and 9 deletions

View file

@ -28,10 +28,18 @@ function collect_services(domain) {
}
function my_host_record(target, host) {
return [
A(target, host.ipv4_address),
AAAA(target, host.ipv6_address)
];
switch (target) {
case "db":
return [
A(target, host.ipv4_address_vpn),
AAAA(target, host.ipv6_address_vpn)
];
default:
return [
A(target, host.ipv4_address),
AAAA(target, host.ipv6_address)
];
}
}
function verify_amazon_ses(dkims) {