Debugging DNS Resolution for rubenflamshepherd.com Domain

269 messages · Page 2 of 14

Let me test the API and retrieve the DNS records for the domain.
Tool: Bash
$ curl -s -X POST https://api.porkbun.com/api/json/v3/ping \
  -H "Content-Type: application/json" \
  -d "{\"secretapikey\": \"$PORKBUN_SECRET_KEY\", \"apikey\": \"$PORKBUN_API_KEY\"}" | jq .
Tool: Bash
$ curl -s -X POST https://api.porkbun.com/api/json/v3/dns/retrieve/rubenflamshepherd.com \
  -H "Content-Type: application/json" \
  -d "{\"secretapikey\": \"$PORKBUN_SECRET_KEY\", \"apikey\": \"$PORKBUN_API_KEY\"}" | jq .
Let me check if the environment variables are set correctly.
Tool: Bash
$ echo "API Key set: $([ -n "$PORKBUN_API_KEY" ] && echo 'yes' || echo 'no')"
echo "Secret Key set: $([ -n "$PORKBUN_SECRET_KEY" ] && echo 'yes' || echo 'no')"
Tool: Bash
$ curl -s -X POST https://api.porkbun.com/api/json/v3/ping \
  -H "Content-Type: application/json" \
  --data-raw '{"secretapikey": "'"$PORKBUN_SECRET_KEY"'", "apikey": "'"$PORKBUN_API_KEY"'"}' | jq .
Tool: Bash
$ cat > /tmp/porkbun_auth.json << EOF
{"secretapikey": "$PORKBUN_SECRET_KEY", "apikey": "$PORKBUN_API_KEY"}
EOF
curl -s -X POST https://api.porkbun.com/api/json/v3/ping \
  -H "Content-Type: application/json" \
  -d @/tmp/porkbun_auth.json | jq .
API is working. Now let me retrieve the DNS records.
Tool: Bash
$ curl -s -X POST https://api.porkbun.com/api/json/v3/dns/retrieve/rubenflamshepherd.com \
  -H "Content-Type: application/json" \
  -d @/tmp/porkbun_auth.json | jq .