Navigation
POST network

dns_record_build

1 credit

Build a DNS zone-file record string from structured parameters

Endpoint

POST /api/v1/tools/network/dns_record_build

Body Parameters

ttl integer optional default: 3600
name string required
value string required
priority integer optional default: 10
record_type string required

Example

input Request
{
    "ttl": 3600,
    "name": "example.com",
    "value": "mail.example.com",
    "priority": 10,
    "record_type": "MX"
}
output Response
{
    "ttl": 3600,
    "name": "example.com.",
    "value": "mail.example.com.",
    "record": "example.com. 3600 IN MX 10 mail.example.com.",
    "priority": 10,
    "record_type": "MX"
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "ttl": 3600,
    "name": "example.com.",
    "value": "mail.example.com.",
    "record": "example.com. 3600 IN MX 10 mail.example.com.",
    "priority": 10,
    "record_type": "MX"
},
  "meta": {
    "tool": "dns_record_build",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.