Using the API
Everything the UI does is available from an unauthenticated JSON API.
# Auto-discover records for a hostname
curl "$BASE/api/lookup?name=example.com"
# Specific type across two resolvers, JSON
curl -X POST "$BASE/api/lookup" -H 'Content-Type: application/json' -d '{
"hostnames": ["example.com", "github.com"],
"type": "MX",
"resolvers": ["google", "cloudflare"]
}'
# Terminal-friendly text output
curl "$BASE/api/lookup?name=example.com&type=A&text=1"
# List available resolvers and record types
curl "$BASE/api/resolvers"