Skip to main content

DomainHostRecord

Resource DomainHostRecord in pulumi-namecheap.
3 min read

Resource DomainHostRecord in pulumi-namecheap.

Pulumi type: namecheap:index/domainHostRecord:DomainHostRecord.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
addressstringyesThe record's value, whose meaning depends on type: an IP address for A/AAAA, a hostname for CNAME/MX/NS, arbitrary text for TXT, a URL for URL/URL301/FRAME. Changing this does not force a new resource: the existing record is edited, in one write that swaps the value, so the name never stops resolving. The resource id is re-rendered, since the address is part of it.
domainstringyesThe registered root domain the record belongs to (e.g. example.com). Must be a root domain on the account, not a subdomain. Changing this forces a new resource.
domainHostRecordIdstringno
hostnamestringyesThe sub-domain the record answers for, or @ for the domain itself (e.g. www). Changing this forces a new resource, because the host is part of the record's identity.
mxPrefnumbernoThe MX preference, lower being preferred, between 0 and 255. Applies to MX records only — Namecheap stores a fixed 10 for every other type, so the value is ignored there rather than fought over. For MX records it is part of what identifies the record, so a primary and a backup mail server can name the same host.
ttlnumbernoTime to live in seconds, between 60 and 60000. Changing this edits the existing record rather than forcing a new resource.
typestringyesThe record type: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME. Changing this forces a new resource. MX and MXE records additionally require the domain's email routing to be set accordingly — see the resource documentation.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
addressstringnoThe record's value, whose meaning depends on type: an IP address for A/AAAA, a hostname for CNAME/MX/NS, arbitrary text for TXT, a URL for URL/URL301/FRAME. Changing this does not force a new resource: the existing record is edited, in one write that swaps the value, so the name never stops resolving. The resource id is re-rendered, since the address is part of it.
domainstringnoThe registered root domain the record belongs to (e.g. example.com). Must be a root domain on the account, not a subdomain. Changing this forces a new resource.
domainHostRecordIdstringno
hostnamestringnoThe sub-domain the record answers for, or @ for the domain itself (e.g. www). Changing this forces a new resource, because the host is part of the record's identity.
mxPrefnumbernoThe MX preference, lower being preferred, between 0 and 255. Applies to MX records only — Namecheap stores a fixed 10 for every other type, so the value is ignored there rather than fought over. For MX records it is part of what identifies the record, so a primary and a backup mail server can name the same host.
ttlnumbernoTime to live in seconds, between 60 and 60000. Changing this edits the existing record rather than forcing a new resource.
typestringnoThe record type: A, AAAA, ALIAS, CAA, CNAME, MX, MXE, NS, TXT, URL, URL301, FRAME. Changing this forces a new resource. MX and MXE records additionally require the domain's email routing to be set accordingly — see the resource documentation.