Expanding ahoskingit DNS

This commit is contained in:
Alexander Hosking 2017-01-31 12:43:56 -05:00
parent 88d33b4589
commit 973d5769f2

View File

@ -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"]
}