# Hermoso: generate_dns_record · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/generate_dns_record/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / generate_dns_record

# `generate_dns_record`

Write an SPF or DMARC record read-only

Area: FREE EMAIL DELIVERABILITY CHECKS · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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

`type` required `"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](https://hermoso.ai/docs/credits/).

## Related tools

- [check_domain_email_health](https://hermoso.ai/docs/reference/publish/check_domain_email_health/) Check a domain’s email setup
- [check_spam_words](https://hermoso.ai/docs/reference/publish/check_spam_words/) Check an email for spam words
- [check_email_address](https://hermoso.ai/docs/reference/publish/check_email_address/) Check an email address

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
