add_dns_record
Add a DNS record to a GoDaddy domain zone without altering existing records. Provide type, name, data, and TTL to create the record synchronously and return its recordId.
Instructions
Add a DNS record to a domain's zone without touching existing records. Record name is relative to the zone apex (@ = bare domain, www = www.example.com, * = wildcard). TTL 600-86400 seconds. MX and SRV require priority (SRV also port and weight); CNAME cannot be set at the apex; SOA and the apex NS set are managed by GoDaddy. The record is created synchronously and the response includes its recordId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | CAA property tag: issue, issuewild, or iodef. | |
| ttl | Yes | Time-to-live in seconds (600-86400). | |
| data | Yes | Record value. Type-specific: IPv4 address for A, IPv6 for AAAA, hostname for CNAME and MX, text for TXT, target host for SRV, issuer for CAA. | |
| flag | No | CAA flag: 0 non-critical, 128 critical. | |
| name | Yes | Record name relative to the zone apex: use @ for the bare domain, www for www.example.com, or * for a wildcard. Never include the domain itself (e.g. not www.example.com). | |
| port | No | Port for SRV records. | |
| type | Yes | DNS record type. | |
| domain | Yes | Domain whose zone to modify, e.g. example.com. | |
| weight | No | Weight for SRV records with equal priority. | |
| service | No | Service label for SRV records, e.g. _http. | |
| priority | No | Priority for MX and SRV records; lower is preferred. Required for MX and SRV. | |
| protocol | No | Protocol label for SRV records, e.g. _tcp. |