DNS source of truth for curiousengine.org, applied to Namecheap.
Namecheap's setHosts API replaces the complete host-record set. Keep every
record for the domain in curiousengine.org.yaml; anything missing from the
YAML can be removed at Namecheap during apply.
- Copy
.env.exampleto.env. - Fill in your Namecheap API credentials.
- Enable API access in Namecheap and whitelist
NAMECHEAP_CLIENT_IP. - Replace the example records in
curiousengine.org.yamlwith the real zone.
Validate the local YAML:
.\bin\dns.ps1 validateShow the difference between Namecheap and the YAML:
.\bin\dns.ps1 diffBack up the current Namecheap zone XML:
.\bin\dns.ps1 backupApply the YAML to Namecheap:
.\bin\dns.ps1 applyUse -Yes for non-interactive apply:
.\bin\dns.ps1 apply -YesPrint current remote records:
.\bin\dns.ps1 pulldomain: curiousengine.org
records:
- host: "@"
type: A
value: "203.0.113.10"
ttl: 1800
- host: "www"
type: CNAME
value: "curiousengine.org."
ttl: 1800
- host: "@"
type: MX
value: "mail.curiousengine.org."
mx_pref: 10
ttl: 1800