One-line CLI scripts to enable/disable WAB DNS Discovery on the most popular domain registrars.
Uses the GoDaddy Domains API v1. Requires production API key + secret from developer.godaddy.com/keys.
_wab with the value provided by WAB.
npm install node-fetch@2GODADDY_API_KEY=your-key GODADDY_API_SECRET=your-secret \ node godaddy-wab-dns.js enable example.com GODADDY_API_KEY=your-key GODADDY_API_SECRET=your-secret \ node godaddy-wab-dns.js disable example.com
# 1. Get current TXT records for _wab
curl -s -H "Authorization: sso-key $KEY:$SECRET" \
"https://api.godaddy.com/v1/domains/example.com/records/TXT/_wab"
# 2. Replace TXT records (PUT replaces entire record set)
curl -s -X PUT -H "Authorization: sso-key $KEY:$SECRET" \
-H "Content-Type: application/json" \
"https://api.godaddy.com/v1/domains/example.com/records/TXT/_wab" \
-d '[{"data":"v=wab1; endpoint=https://example.com/.well-known/wab.json","ttl":3600}]'
# 3. Disable: replace with empty array
curl -s -X PUT -H "Authorization: sso-key $KEY:$SECRET" \
-H "Content-Type: application/json" \
"https://api.godaddy.com/v1/domains/example.com/records/TXT/_wab" \
-d '[]'
Uses the Namecheap API. Requires API enablement (Profile → Tools → API Access) and IP allow-listing.
setHosts replaces ALL host records — the script preserves your existing records and only modifies _wab.
npm install node-fetch@2 fast-xml-parserNAMECHEAP_USER=your-user \ NAMECHEAP_API_KEY=your-api-key \ NAMECHEAP_CLIENT_IP=1.2.3.4 \ node namecheap-wab-dns.js enable example.com # Same env vars, then: node namecheap-wab-dns.js disable example.com
GET /api/discovery/provider/record-template) for the TXT value._wab TXT record (registrar-specific call)./api/discovery/provider/status — propagation may take 5-30 minutes for some registrars.← Provider Onboarding · Cloudflare · Route 53 · Azure DNS · DNS Discovery