This function returns DNS zone information about a domain.
uapi --output=jsonpretty \ --user=username \ DNS \ lookup \ domain='example.com'
{- "apiversion": 3,
- "func": "lookup",
- "module": "DNS",
- "result": {
- "data": [
- "example.com has address 93.184.216.34",
- "example.com has IPv6 address 2606:2800:220:1:248:1893:25c8:1946",
- "example.com mail is handled by 0 ."
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}