Actions25
- Account Actions
- Account Info Actions
- Contact Verification Actions
- Domain Actions
- Domain Info Actions
- Domain Name System Actions
- Email Forwarding Actions
- Hello Actions
Domain Name System → Create Record
AI-generatedSummary
Adds a new DNS record to a specified domain zone via the Name API.
Inputs
- domainName (required) — The domain to add the record to (e.g., 'example.com').
- host (required) — The hostname relative to the zone (e.g., 'blog'). Use an empty string or '@' for an apex record. For SRV records, use '{service}.{protocol}.{host}'.
- type (required) — The DNS record type: A, AAAA, ANAME, CNAME, MX, NS, SRV, or TXT.
- answer (required) — The record value: IP address for A/AAAA, target for ANAME/CNAME/MX/NS, text for TXT, or '{weight} {port} {target}' for SRV.
- priority — Required for MX and SRV records; ignored for others.
- ttl — Time to live in seconds (minimum 300).
- requestOptions — Global request settings including batching, timeout, proxy, and SSL verification options.
Output shape
no body — success/failure only
Returns the standard n8n execution status (success or failure) based on the API response.
Examples
Example 1: Create a CNAME record for a subdomain
Domain: 'example.com', Host: 'www', Type: 'CNAME', Answer: 'example.org'
Example 2: Create an MX record for email routing
Domain: 'example.com', Host: 'example.com', Type: 'MX', Answer: 'mail.example.org', Priority: '10'
Example 3: Create a TXT record for verification
Domain: 'example.com', Host: '_dmarc', Type: 'TXT', Answer: 'v=DMARC1; p=none'