Skip to content

Instantly share code, notes, and snippets.

@minac
Created November 25, 2022 14:57
Show Gist options
  • Save minac/2c1e5be56ba4d5a6cc5c2922754cf17c to your computer and use it in GitHub Desktop.
Save minac/2c1e5be56ba4d5a6cc5c2922754cf17c to your computer and use it in GitHub Desktop.
module "dns_zone_hrv-st" {
source = "../modules/dns-zone"
domain = "hrv.st"
}
module "dns_records_hrv-st" {
source = "../modules/dns-records"
zone = module.dns_zone_hrv-st.zones
records = [
{ name = "", type = "MX", values = [
"1 ASPMX.L.GOOGLE.COM.",
"5 ALT1.ASPMX.L.GOOGLE.COM.",
"5 ALT2.ASPMX.L.GOOGLE.COM.",
"10 ASPMX2.GOOGLEMAIL.COM.",
"10 ASPMX3.GOOGLEMAIL.COM.",
"10 ASPMX4.GOOGLEMAIL.COM.",
"10 ASPMX5.GOOGLEMAIL.COM."
] },
{ name = "", type = "TXT", values = [
"google-site-verification=foobar"
] },
{ name = "", type = "A", values = ["1.2.3.4", "1.2.3.5"] },
{ name = "*", type = "CNAME", values = ["hrv.st."] },
{ name = "try", type = "A", values = ["1.2.3.6"] },
{ name = "try", type = "AAAA", values = ["2606:4700:4700::1111"] },
{ name = "www", type = "CNAME", values = ["cname.bit.ly."] },
]
}
output "hrv-st-nameservers" {
value = module.dns_zone_hrv-st.nameservers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment