Improve dnsconfig a bit
This commit is contained in:
parent
53d9cd1190
commit
6fadc45e24
5 changed files with 20 additions and 9 deletions
dns
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue