This function replaces a domain's IPv4 address in the DNS zone file with the specified destination IPv4 address.
uapi --user=username DNS swap_ip_in_zones domain='example.com' source_ip='192.0.2.0' dest_ip='192.0.2.1'
{- "apiversion": 3,
- "func": "swap_ip_in_zones",
- "module": "DNS",
- "result": {
- "data": [
- {
- "zone_name": "example.com",
- "record_name": "example.com",
- "record_type": "A",
- "old_value": "192.0.2.0",
- "new_value": "192.0.2.1"
}
], - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}