json for CMD_DNS_ADMIN

Version 1.542

Feature
Unfinished

List all domains: CMD_DNS_ADMIN?json=yes see FileManager json output for details on the "info" sub-array: https://www.directadmin.com/features.php?id=1878 ---- Show records for a domain: CMD_DNS_ADMIN?json=yes&domain=domain.com&full_mx_records=yes for backwards API compatibility if you don't include full_mx_records=yes, then you'll get the old method of "type": "MX", "index": "mail", "value": "10" so because the feature is enabled by default for the DA interface, you should be including it, so you get: "type": "MX", "index": "domain.com.", "value": "10 mail.domain.com."

Interested to try DirectAdmin? Get a 30-day Free Trial!