Skip to content

Commit

Permalink
chore(zone): disable dev NS (#41)
Browse files Browse the repository at this point in the history
we've confirmed registrar set up glue records for aws1,aws2 and ovh1
so we are now able to sunset dev boxes and remove NS records for them
to route DNS traffic to prod (aws1,aws2,ovh1) where we have monitoring
set up
  • Loading branch information
lidel authored Jan 16, 2025
1 parent 71cc95e commit bc6a575
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions zones/libp2p.direct
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,30 @@ $TTL 300
$ORIGIN libp2p.direct.

;; SOA Records
;; TODO: switch to aws1.libp2p.direct after glue record is in place
@ 86400 IN SOA ns1.libp2p.direct. domains.ipshipyard.com. (
2025011002 ; serial
@ 86400 IN SOA aws1.libp2p.direct. domains.ipshipyard.com. (
2025011601 ; serial
86400 ; refresh
2400 ; retry
604800 ; expire
300 ; minimum
)

;; DNS Service
;; NOTE: using subdomain here works because we have Glue Records set up at Registrar

;; manual legacy dev
libp2p.direct. 86400 IN NS ns1.libp2p.direct.
libp2p.direct. 86400 IN NS ns2.libp2p.direct.
;; NOTE: using foo.libp2p.direct subdomain here works because we have Glue Records set up at Registrar

;; waterworks-infra
libp2p.direct. 86400 IN NS aws1.libp2p.direct.
libp2p.direct. 86400 IN NS aws2.libp2p.direct.
libp2p.direct. 86400 IN NS ovh1.libp2p.direct.

;; dev1
ns1.libp2p.direct. 86400 IN A 40.160.8.207
ns1.libp2p.direct. 86400 IN AAAA 2604:2dc0:101:100::265

;; dev2
ns2.libp2p.direct. 86400 IN A 15.204.28.76
ns2.libp2p.direct. 86400 IN AAAA 2604:2dc0:202:200::64e
;; manual legacy dev
;libp2p.direct. 86400 IN NS ns1.libp2p.direct.
;libp2p.direct. 86400 IN NS ns2.libp2p.direct.

;; aws-libp2p-direct-01
aws1.libp2p.direct. 86400 IN A 18.188.47.119
aws1.libp2p.direct. 86400 IN AAAA 2600:1f16:f2:9800:9fe5:445b:d8ae:efe3

;; TODO: ns3 was renamed to aws1. remove this after removing dev boxes
ns3.libp2p.direct. 86400 IN A 18.188.47.119
ns3.libp2p.direct. 86400 IN AAAA 2600:1f16:f2:9800:9fe5:445b:d8ae:efe3

;; aws-libp2p-direct-02
aws2.libp2p.direct. 86400 IN A 18.219.153.245
aws2.libp2p.direct. 86400 IN AAAA 2600:1f16:f2:9801:e482:8ee0:dfba:9157
Expand All @@ -47,6 +34,17 @@ aws2.libp2p.direct. 86400 IN AAAA 2600:1f16:f2:9801:e482:8
ovh1.libp2p.direct. 86400 IN A 15.204.30.239
ovh1.libp2p.direct. 86400 IN AAAA 2604:2dc0:202:200::80d

;; dev1
ns1.libp2p.direct. 86400 IN A 40.160.8.207
ns1.libp2p.direct. 86400 IN AAAA 2604:2dc0:101:100::265

;; dev2
ns2.libp2p.direct. 86400 IN A 15.204.28.76
ns2.libp2p.direct. 86400 IN AAAA 2604:2dc0:202:200::64e

;; TODO: ns3 was renamed to aws1, fine to remove once we migrate away from ns1 as primary
ns3.libp2p.direct. 86400 IN CNAME aws1.libp2p.direct.

;; Limit allowed CAs to Let's Encrypt, we discussed feasibility with them and no concerns were raised:
;; https://community.letsencrypt.org/t/feedback-on-raising-certificates-per-registered-domain-to-enable-peer-to-peer-networking/223003
libp2p.direct. 86400 IN CAA 0 issue "letsencrypt.org"
Expand Down

0 comments on commit bc6a575

Please sign in to comment.