add_dns_record
Create or update DNS records in a zone, including A, AAAA, CNAME, MX, TXT, and SRV entries, with optional SOA serial updates.
Instructions
Add or update a DNS record in a zone (pdns/add_dns). Requires pdns/edit permission. For SRV records, fill in proto/priority/weight/port/target. Fields mname/rname are marked required for SOA checks in the docs — fill them in on error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds, defaults to 3600 | |
| name | No | Record name, e.g. www | |
| port | No | Port for SRV | |
| type | Yes | Record type: A, AAAA, CNAME, MX, TXT, SRV… | |
| zone | Yes | Zone name | |
| mname | No | Primary NS in the SOA record | |
| proto | No | Protocol for SRV, e.g. tcp | |
| rname | No | Admin email in the SOA record | |
| target | No | Target domain for SRV | |
| weight | No | Weight for SRV | |
| confirm | Yes | Must be true to run the operation. | |
| content | Yes | Record value, e.g. 10.56.121.5 | |
| old_name | No | Previous record name — for renaming | |
| priority | No | Priority for SRV/MX | |
| increase_soa_serial | No | Auto-increment SOA serial (defaults to true) |