2021-12-27 16:53:26 +01:00
|
|
|
# DNS configuration for tvl.su
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain" "tvl_su" {
|
|
|
|
name = "tvl.su"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_NS1" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "NS"
|
|
|
|
data = "ns1.namesystem.se."
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_NS2" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "NS"
|
|
|
|
data = "ns2.namesystem.se."
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_NS3" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "NS"
|
|
|
|
data = "ns3.namesystem.se."
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_apex_A" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "A"
|
|
|
|
data = var.whitby_ipv4
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_apex_AAAA" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "AAAA"
|
|
|
|
data = var.whitby_ipv6
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_whitby_A" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "whitby"
|
|
|
|
type = "A"
|
|
|
|
data = var.whitby_ipv4
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_whitby_AAAA" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "whitby"
|
|
|
|
type = "AAAA"
|
|
|
|
data = var.whitby_ipv6
|
|
|
|
}
|
|
|
|
|
2022-02-16 20:35:47 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_sanduny_A" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "sanduny"
|
|
|
|
type = "A"
|
|
|
|
data = var.sanduny_ipv4
|
|
|
|
}
|
|
|
|
|
2022-02-18 12:42:56 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_sanduny_AAAA" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "sanduny"
|
|
|
|
type = "AAAA"
|
|
|
|
data = var.sanduny_ipv6
|
|
|
|
}
|
|
|
|
|
2022-07-19 15:57:12 +02:00
|
|
|
# Explicit records for all services running on whitby
|
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_whitby_services" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
type = "CNAME"
|
|
|
|
data = "whitby.tvl.su."
|
|
|
|
host = each.key
|
|
|
|
for_each = toset(local.whitby_services)
|
2021-12-27 16:53:26 +01:00
|
|
|
}
|
|
|
|
|
2024-02-23 10:41:04 +01:00
|
|
|
# historical tvixbolt.tvl.su record, redirects to bolt.tvix.dev
|
|
|
|
resource "glesys_dnsdomain_record" "tvix_su_tvixbolt_CNAME" {
|
2022-09-12 15:57:41 +02:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
2024-02-23 10:41:04 +01:00
|
|
|
host = "tvixbolt"
|
2022-09-12 15:57:41 +02:00
|
|
|
type = "CNAME"
|
|
|
|
data = "whitby.tvl.su."
|
|
|
|
}
|
|
|
|
|
2022-12-24 23:57:13 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_inbox_CNAME" {
|
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
type = "CNAME"
|
|
|
|
data = "sanduny.tvl.su."
|
|
|
|
host = "inbox.tvl.su."
|
|
|
|
}
|
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_TXT_google_site" {
|
2021-12-27 16:53:26 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
2022-01-29 14:58:20 +01:00
|
|
|
type = "TXT"
|
|
|
|
data = "google-site-verification=3ksTBzFK3lZlzD3ddBfpaHs9qasfAiYBmvbW2T_ejH4"
|
2021-12-27 16:53:26 +01:00
|
|
|
}
|
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
# Yandex 360 setup
|
2021-12-27 16:53:26 +01:00
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_TXT_yandex" {
|
2021-12-27 16:53:26 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
2022-01-29 14:58:20 +01:00
|
|
|
type = "TXT"
|
|
|
|
data = "yandex-verification: b99c43b7838949dc"
|
2021-12-27 16:53:26 +01:00
|
|
|
}
|
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_MX_yandex" {
|
2021-12-27 16:53:26 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "MX"
|
2022-01-29 14:58:20 +01:00
|
|
|
data = "10 mx.yandex.net."
|
2021-12-27 16:53:26 +01:00
|
|
|
}
|
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_TXT_yandex_spf" {
|
2021-12-27 16:53:26 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
|
|
|
host = "@"
|
|
|
|
type = "TXT"
|
2022-01-29 14:58:20 +01:00
|
|
|
data = "v=spf1 redirect=_spf.yandex.net"
|
2021-12-27 16:53:26 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_TXT_yandex_dkim" {
|
2021-12-27 16:53:26 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
2022-01-29 14:58:20 +01:00
|
|
|
host = "mail._domainkey"
|
2021-12-27 16:53:26 +01:00
|
|
|
type = "TXT"
|
2022-01-29 14:58:20 +01:00
|
|
|
data = "v=DKIM1; k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDaRdWF8BtCHlTTQN8O+E5Qn27FVIpUEAdk1uq2vdIKh1Un/3NfdWtxStcS1Mf0iEprt1Fb4zgWOkDlPi+hH/UZqiC9QNeNqEBGMB9kgJyfsUt6cDCIVGvn8PT9JcZW1jxSziOj8nUWB4noqbaVcQNqNbwtaHPm3aifwKwScxVO7wIDAQAB"
|
2021-12-27 16:53:26 +01:00
|
|
|
}
|
2022-01-29 14:38:46 +01:00
|
|
|
|
2022-01-29 14:58:20 +01:00
|
|
|
resource "glesys_dnsdomain_record" "tvl_su_CNAME_yandex_mail" {
|
2022-01-29 14:38:46 +01:00
|
|
|
domain = glesys_dnsdomain.tvl_su.id
|
2022-01-29 14:58:20 +01:00
|
|
|
host = "mail"
|
|
|
|
type = "CNAME"
|
|
|
|
data = "domain.mail.yandex.net."
|
2022-01-29 14:38:46 +01:00
|
|
|
}
|