mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add AAAA record for mail server
This commit is contained in:
parent
912d58b8ee
commit
8017763bfb
1 changed files with 11 additions and 2 deletions
9
dns.tf
9
dns.tf
|
|
@ -1,6 +1,7 @@
|
|||
locals {
|
||||
dmarc_value = "\"v=DMARC1; p=none; rua=mailto:failed-dmarc@banditlair.com; ruf=mailto:dmarc@banditlair.com\""
|
||||
storage1_ip = "78.46.96.243"
|
||||
storage1_ipv6 = "2a01:4f8:120:8233::1"
|
||||
}
|
||||
|
||||
data "hetznerdns_zone" "banditlair_zone" {
|
||||
|
|
@ -39,6 +40,14 @@ resource "hetznerdns_record" "mail_a" {
|
|||
ttl = 600
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "mail_aaaa" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
name = "mail"
|
||||
value = local.storage1_ipv6
|
||||
type = "AAAA"
|
||||
ttl = 600
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "storage1_a" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
name = "storage1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue