diff options
Diffstat (limited to 'terraform')
| -rw-r--r-- | terraform/admin/dns.nix | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/terraform/admin/dns.nix b/terraform/admin/dns.nix index eeddfd5..ff23e25 100644 --- a/terraform/admin/dns.nix +++ b/terraform/admin/dns.nix @@ -5,12 +5,6 @@ let domain = "fcuny.net"; # GitHub Pages IP addresses for root domain - githubPagesIPs = [ - "185.199.108.153" - "185.199.110.153" - "185.199.109.153" - "185.199.111.153" - ]; mkARecord = name: content: ttl: { inherit name content ttl; @@ -58,15 +52,6 @@ let zone_id = zoneId; }; - mkMultipleARecords = - baseName: ips: - lib.listToAttrs ( - lib.imap0 (i: ip: { - name = "${baseName}_${toString i}"; - value = mkARecord domain ip 1; - }) ips - ); - dkimRecords = lib.listToAttrs ( lib.imap1 (i: _: { @@ -81,6 +66,7 @@ let ); subdomainARecords = { + cname_root = mkARecord domain primaryIPv4 1; cname_code = mkARecord "code.${domain}" primaryIPv4 1; cname_go = mkARecord "go.${domain}" primaryIPv4 1; cname_id = mkARecord "id.${domain}" primaryIPv4 1; @@ -108,10 +94,5 @@ let in { resource.cloudflare_dns_record = - (mkMultipleARecords "cname_root" githubPagesIPs) - // subdomainARecords - // dkimRecords - // mxRecords - // srvRecords - // txtRecords; + subdomainARecords // dkimRecords // mxRecords // srvRecords // txtRecords; } |
