DNS Automation
This project includes a tool to automate DNS configuration via Namecheap API.
Pre-requisites
- Namecheap API Key (Whitelisted IP needed).
- Credentials in Doppler:
NAMECHEAP_API_USERNAMECHEAP_API_KEY
Tool: tools/dns-automation.ts
This script:
1. Detects current Public IP.
2. Fetches existing records for singulardream.org (to avoid overwriting).
3. Injects/Updates the docs CNAME record pointing to sd-hoa.github.io.
4. Pushes the full record set back to Namecheap.
Usage
Note: This script logic is required because Namecheap's
setHostscommand is destructive (it replaces ALL records). We heavily rely on accurate fetching before saving.