prod/dns.tf: set up new MX's
This commit is contained in:
Родитель
7912ad3a7f
Коммит
9bb7193fd2
33
prod/dns.tf
33
prod/dns.tf
|
@ -3,7 +3,6 @@
|
||||||
# Not (yet) described here:
|
# Not (yet) described here:
|
||||||
# - @ SOA record
|
# - @ SOA record
|
||||||
# - @ NS record
|
# - @ NS record
|
||||||
# - @ MX record
|
|
||||||
# - `mail` A record
|
# - `mail` A record
|
||||||
# - `mail` MX record
|
# - `mail` MX record
|
||||||
|
|
||||||
|
@ -47,6 +46,38 @@ resource "azurerm_dns_txt_record" "root_txt" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "azurerm_dns_mx_record" "root_mx" {
|
||||||
|
name = "@"
|
||||||
|
zone_name = azurerm_dns_zone.flagship.name
|
||||||
|
resource_group_name = azurerm_dns_zone.flagship.resource_group_name
|
||||||
|
ttl = 3600
|
||||||
|
|
||||||
|
record {
|
||||||
|
preference = 1
|
||||||
|
exchange = "aspmx.l.google.com."
|
||||||
|
}
|
||||||
|
|
||||||
|
record {
|
||||||
|
preference = 5
|
||||||
|
exchange = "alt1.aspmx.l.google.com."
|
||||||
|
}
|
||||||
|
|
||||||
|
record {
|
||||||
|
preference = 5
|
||||||
|
exchange = "alt2.aspmx.l.google.com."
|
||||||
|
}
|
||||||
|
|
||||||
|
record {
|
||||||
|
preference = 10
|
||||||
|
exchange = "alt3.aspmx.l.google.com."
|
||||||
|
}
|
||||||
|
|
||||||
|
record {
|
||||||
|
preference = 10
|
||||||
|
exchange = "alt4.aspmx.l.google.com."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
resource "azurerm_dns_cname_record" "www" {
|
resource "azurerm_dns_cname_record" "www" {
|
||||||
name = "www"
|
name = "www"
|
||||||
zone_name = azurerm_dns_zone.flagship.name
|
zone_name = azurerm_dns_zone.flagship.name
|
||||||
|
|
Загрузка…
Ссылка в новой задаче