Skip to content

Managing DNS Records

All DNS endpoints require SIWE authentication. Mutations (add, update, delete) cost $0.10 USDC each, settled via x402.

Terminal window
curl https://api.bloomfilter.xyz/dns/example.io \
-H "Authorization: Bearer YOUR_TOKEN"
{
"domain": "example.io",
"records": [
{ "recordId": "rr-1", "type": "A", "host": "@", "value": "76.76.21.21", "ttl": 3600, "distance": null },
{ "recordId": "rr-2", "type": "CNAME", "host": "www", "value": "example.io", "ttl": 3600, "distance": null },
{ "recordId": "rr-3", "type": "MX", "host": "@", "value": "mail.example.io", "ttl": 3600, "distance": 10 }
]
}
Terminal window
curl -X POST https://api.bloomfilter.xyz/dns/example.io \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type": "A", "host": "@", "value": "76.76.21.21"}'
{
"recordId": "rr-abc123",
"type": "A",
"host": "@",
"value": "76.76.21.21",
"ttl": 3600,
"distance": null
}

Use the recordId from the list response:

Terminal window
curl -X PUT https://api.bloomfilter.xyz/dns/example.io/rr-abc123 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"value": "1.2.3.4", "ttl": 300}'
{
"message": "DNS record updated"
}

You can update any combination of host, value, ttl, and priority. Only include the fields you want to change.

Terminal window
curl -X DELETE https://api.bloomfilter.xyz/dns/example.io/rr-abc123 \
-H "Authorization: Bearer YOUR_TOKEN"
{
"message": "DNS record deleted"
}
TypePurposeExample valuePriority
AIPv4 address76.76.21.21No
AAAAIPv6 address2001:db8::1No
CNAMEAliasexample.ioNo
MXMail servermail.example.ioYes (required)
TXTText/verificationv=spf1 include:...No
NSNameserverns1.example.comNo
SRVService10 5 8080 server.example.ioYes
CAACertificate authority0 issue "letsencrypt.org"No
FieldTypeDefaultRangeNotes
typestringRequiredOne of the types above
hoststring"@"1-253 chars@ for root, www, mail, etc.
valuestringRequired, 1-4096 charsIP, hostname, or text content
ttlnumber3600300-86400Time-to-live in seconds
prioritynumber0-65535Required for MX, optional for SRV