Export a DNS zone
lw_zone_exportExport a DNS zone's records as BIND, normalized JSON, or Cloudflare-ready output, and optionally compare results with Liquid Web's own zone data to spot differences.
Instructions
Export a zone's records. format=bind gives a BIND zone file built from the record list; json gives normalized records; cloudflare gives Cloudflare DNS record bodies (POST /zones/{id}/dns_records) plus a Cloudflare-ready BIND file (no SOA or apex NS, ALIAS converted to CNAME, records not proxied). compare_with_liquid_web=true also fetches Liquid Web's own bleed formatAsBind output and reports differences. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lw_zone_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | No | Zone name, e.g. "example.com". Give this or zone_id. | |
| format | No | Output format (default bind). | |
| context | No | Auth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them. | |
| zone_id | No | Numeric zone id from lw_zone_list. Give this or zone. | |
| default_ttl | No | $TTL for the BIND output (default 3600). | |
| include_soa | No | Include the SOA record in BIND output (default false). | |
| compare_with_liquid_web | No | Also call bleed Network/DNS/Zone/formatAsBind and diff it against the record list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| context | No | ||
| preview | No | ||
| summary | Yes | ||
| warnings | No | ||
| next_page | No | ||
| next_step | No | ||
| truncated | No | ||
| expires_at | No | ||
| confirm_token | No |