generate_dns_record
Write an SPF or DMARC record read-only
Description
Write an SPF or DMARC TXT record from plain choices, ready to paste at the DNS host. SPF: `providers` by id (google, microsoft, zoho, fastmail, proton, icloud, godaddy, namecheap, mailgun, zendesk, salesforce, freshdesk; amazonses, sendgrid, postmark, mailchimp, brevo, hubspot, klaviyo, shopify and intercom answer with what they need instead), extra `include` domains, `ip4`/`ip6` addresses and the ending (~all by default); with a `domain`, the includes are read and counted against the 10-lookup limit. DMARC: `policy` none, quarantine or reject, `rua` report addresses and alignment. It writes the record; publishing it at the DNS host is the user’s step. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
typerequired | "spf" | "dmarc" | |
domain | string | the domain the record is for; fills in the host name |
providers | string[] | SPF: sending services by id, e.g. ["google", "mailgun"] |
include | string[] | SPF: extra include domains |
ip4 | string[] | SPF: IPv4 addresses or ranges |
ip6 | string[] | SPF: IPv6 addresses or ranges |
mx | boolean | SPF: let the domain’s own MX servers send |
a | boolean | SPF: let the domain’s own address send |
all | "~all" | "-all" | "?all" | SPF ending, default ~all |
policy | "none" | "quarantine" | "reject" | DMARC policy, default none |
subdomainPolicy | "none" | "quarantine" | "reject" | |
rua | string[] | DMARC: addresses for the daily aggregate reports |
ruf | string[] | DMARC: addresses for failure reports |
adkim | "r" | "s" | |
aspf | "r" | "s" |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/generate_dns_record.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_dns_record","arguments":{"type":"<one of the listed values>"}}}
CLI
hermoso call generate_dns_record --json '{"type":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
check_domain_email_healthCheck a domain’s email setupcheck_spam_wordsCheck an email for spam wordscheck_email_addressCheck an email address