Make 0rng DNS alias primary domain
CNAME's are good for this
This commit is contained in:
parent
ad415c2b53
commit
b6696e87f2
1 changed files with 6 additions and 6 deletions
|
@ -5,24 +5,24 @@ resource "cloudflare_zone" "orngone" {
|
||||||
resource "cloudflare_record" "orngone_git" {
|
resource "cloudflare_record" "orngone_git" {
|
||||||
zone_id = cloudflare_zone.orngone.id
|
zone_id = cloudflare_zone.orngone.id
|
||||||
name = "git"
|
name = "git"
|
||||||
value = vultr_instance.casey.main_ip
|
value = cloudflare_record.theorangeonenet_git.hostname
|
||||||
type = "A"
|
type = "CNAME"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "orngone_who" {
|
resource "cloudflare_record" "orngone_who" {
|
||||||
zone_id = cloudflare_zone.orngone.id
|
zone_id = cloudflare_zone.orngone.id
|
||||||
name = "who"
|
name = "who"
|
||||||
value = vultr_instance.casey.main_ip
|
value = cloudflare_record.theorangeonenet_whoami.hostname
|
||||||
type = "A"
|
type = "CNAME"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "orngone_img" {
|
resource "cloudflare_record" "orngone_img" {
|
||||||
zone_id = cloudflare_zone.orngone.id
|
zone_id = cloudflare_zone.orngone.id
|
||||||
name = "img"
|
name = "img"
|
||||||
value = linode_instance.grimes.ip_address
|
value = cloudflare_record.theorangeonenet_img.hostname
|
||||||
type = "A"
|
type = "CNAME"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue