Skip to main content

recommended_dns_records

Creates, updates, deletes, gets or lists a recommended_dns_records resource.

Overview​

Namerecommended_dns_records
TypeResource
Idovh.email_domain.recommended_dns_records

Fields​

The following fields are returned by SELECT queries:

DNS record for email services

NameDatatypeDescription
idintegerId of record
field_typestringType of DNS record (A, AAAA, CAA, CNAME, DKIM, DMARC, DNAME, LOC, MX, NAPTR, NS, PTR, SPF, SRV, SSHFP, TLSA, TXT) (wire: fieldType)
sub_domainstringsubdomain of record (wire: subDomain)
targetstringTarget of DNS record
ttlintegerTTL of record
zonestringName of DNS zone

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdomainList recommended DNS records. Returns the DNS records recommended for the email domain, with their type, subdomain, target, TTL and zone.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
domainstringName of your domain name

SELECT examples​

List recommended DNS records. Returns the DNS records recommended for the email domain, with their type, subdomain, target, TTL and zone.

SELECT
id,
field_type,
sub_domain,
target,
ttl,
zone
FROM ovh.email_domain.recommended_dns_records
WHERE domain = '{{ domain }}' -- required
;