Make 0rng DNS alias primary domain

CNAME's are good for this
This commit is contained in:
Jake Howard 2021-05-02 17:32:27 +01:00
parent ad415c2b53
commit b6696e87f2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -5,24 +5,24 @@ resource "cloudflare_zone" "orngone" {
resource "cloudflare_record" "orngone_git" {
zone_id = cloudflare_zone.orngone.id
name = "git"
value = vultr_instance.casey.main_ip
type = "A"
value = cloudflare_record.theorangeonenet_git.hostname
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "orngone_who" {
zone_id = cloudflare_zone.orngone.id
name = "who"
value = vultr_instance.casey.main_ip
type = "A"
value = cloudflare_record.theorangeonenet_whoami.hostname
type = "CNAME"
ttl = 1
}
resource "cloudflare_record" "orngone_img" {
zone_id = cloudflare_zone.orngone.id
name = "img"
value = linode_instance.grimes.ip_address
type = "A"
value = cloudflare_record.theorangeonenet_img.hostname
type = "CNAME"
ttl = 1
}