dns_add_record
Add or edit DNS records in a zone, including A, AAAA, CNAME, MX, TXT, SRV, CAA, and NS, using the old value to replace an existing record.
Instructions
Add a record (A, AAAA, CNAME, MX, TXT, SRV, CAA, NS...), or edit one by passing the old value in replace. Scope dns:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | CAA tag: issue, issuewild or iodef | |
| ttl | No | TTL in seconds | |
| name | No | Record name: @ for the apex, or a label like www | |
| port | No | SRV port | |
| type | Yes | Record type, e.g. A, CNAME, MX, TXT | |
| zone | Yes | Domain | |
| flags | No | CAA flags (default 0) | |
| value | Yes | Record value, e.g. an IP, a host name or the TXT text | |
| weight | No | SRV weight | |
| replace | No | Edit: the current value of the record this one replaces | |
| priority | No | MX and SRV priority |