From 973d5769f2cf7d0cc3245ced58032a0a021a2d8c Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 31 Jan 2017 12:43:56 -0500 Subject: [PATCH] Expanding ahoskingit DNS --- ahoskingit/terraform/dns_ahoskingit.tf | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index 6db16f0..88ba138 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -13,6 +13,14 @@ resource "aws_route53_record" "ahoskingit" { records = ["104.37.195.87"] } +resource "aws_route53_record" "ahoskingit_www" { + zone_id = "${aws_route53_zone.ahoskingit.zone_id}" + name = "www.ahoskingit.com" + type = "CNAME" + ttl = "5" + records = ["${aws_route53_record.ahoskingit.name}"] +} + resource "aws_route53_record" "home_ahoskingit" { zone_id = "${aws_route53_zone.ahoskingit.zone_id}" name = "home.ahoskingit.com" @@ -47,3 +55,22 @@ resource "aws_route53_record" "lab_ahoskingit" { # records = ["${var.home_ip}"] #} +# email MX records for DNS +resource "aws_route53_record" "ahoskingit_mx" { + zone_id = "${aws_route53_zone.ahoskingit.zone_id}" + name = "${aws_route53_zone.ahoskingit.name}" + type = "MX" + ttl = "60" + records = ["1 ASPMX.L.GOOGLE.COM", + "5 ALT1.ASPMX.L.GOOGLE.COM", + "5 ALT2.ASPMX.L.GOOGLE.COM", + "10 ALT3.ASPMX.L.GOOGLE.COM", + "10 ALT4.ASPMX.L.GOOGLE.COM"] +} +resource "aws_route53_record" "ahoskingit_txt" { + zone_id = "${aws_route53_zone.ahoskingit.zone_id}" + name = "${aws_route53_zone.ahoskingit.name}" + type = "TXT" + ttl = "60" + records = ["google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"] +}