Skip to content

Zone management

Record types

Review every DNS record type DNSMigrator supports, including standard, DNSSEC, service, redirect, provider-specific, and dnsconfig.js alias records.

9 min read

On this page

DNSMigrator’s record model has 48 canonical types: standard DNS records, redirect shortcuts, and provider-specific pseudo-records. The Type menu uses the union advertised by the assigned providers, and Serve from can limit a record to selected connections in a multi-provider zone.

How to read this reference#

Provider support is generated from the current catalog and can change as beta adapters are verified. Open Supported providers or a provider's setup page for its current record-type, TTL, routing, alias, and write capabilities rather than relying on a hard-coded count here.

Examples use zone-file layout for readability:

text
owner  TTL  IN  TYPE  RDATA

@ means the zone apex. DNS names are stored in lowercase with a trailing dot. TXT and SPF values are stored as logical text without outer quotes.

Common record types#

These types have dedicated fields in the record editor.

TypeFields in the editorZone-file exampleValidation and provider notes
AAddresswww 300 IN A 192.0.2.10The form and strict validator require a valid four-octet IPv4 address; canonical storage uses decimal octets.
AAAAAddresswww 300 IN AAAA 2001:db8::10The address is validated, compressed, and lowercased.
CNAMETargetwww 300 IN CNAME app.example.net.One hostname target is allowed; apex support depends on the provider.
MXPriority, Mail server@ 300 IN MX 10 mx1.mail.example.net.Priority is 0–65535; only 0 . is a valid null MX.
TXTText@ 300 IN TXT "v=spf1 -all"Enter logical text without quotes; provider total-value limits differ.
NSTargetchild 3600 IN NS ns1.child.example.Use NS for a child delegation. Apex NS is managed through nameserver settings and the push-safety guard.
SRVPriority, Weight, Port, Target_sip._tcp 300 IN SRV 10 5 5060 sip.example.net.Each number is 0–65535; . is allowed as the target.
CAAFlags, Tag, Value@ 300 IN CAA 0 issue "letsencrypt.org"The form offers flags 0 and 128 plus issue, issuewild, iodef, issuemail, and issuevmc; lint validates the supported tag and value rules.
PTRTarget10 300 IN PTR host.example.com.In a reverse-zone dnsconfig.js, a full IP owner is reduced to the relative reverse label.

CNAME, ALIAS, and DNAME are single-value in the form. NS and PTR use the same hostname field but may hold several values. Types without a dedicated editor use Record data. The shared validator parses SSHFP, TLSA/SMIMEA, DS, HTTPS/SVCB, NAPTR, URI, OPENPGPKEY, TXT/SPF presentation data, and the common host/value shapes; web Zone checks reports advanced strict-validator findings as warnings. CERT, DHCID, LOC, RP, and provider-specific pseudo-record data still receive only their dedicated normalizer or a nonempty guard.

DNSSEC, service binding, and security records#

TypeCanonical RDATAZone-file exampleValidation and provider notes
SOAPrimary NS, mailbox, serial, refresh, retry, expire, minimum@ 3600 IN SOA ns1.example.net. hostmaster.example.com. 1 3600 600 1209600 300Provider-managed in normal pushes. It is hidden from Add record and protected by the apex-NS guard.
DSKey tag, algorithm, digest type, digestchild 300 IN DS 12345 13 2 49FD46E6C4B45C55D4AC0123456789ABCDEF0123456789ABCDEF0123456789ABValidates key tag, algorithm, digest type, hexadecimal data, and digest length.
DNSKEYFlags, protocol, algorithm, public key@ 300 IN DNSKEY 257 3 13 BASE64PUBLICKEYHidden and omitted from normal plans; supported providers create it when DNSSEC is enabled. Lint validates flags, protocol, algorithm, and base64 shape.
HTTPSPriority, target, service parameters@ 300 IN HTTPS 1 . alpn="h3,h2"Strict validation checks alias mode and known parameters, including port, IP hints, ALPN, ECH, and mandatory keys.
SVCBPriority, target, service parameters_dns 300 IN SVCB 1 resolver.example.net. port=853 alpn="dot"Uses the same strict parameter validation as HTTPS.
TLSAUsage, selector, matching type, association data_443._tcp 300 IN TLSA 3 1 1 0C72AC70B745AC19998811B131D662C9AC69DBDBE7CB23E5B514B56664C5D3D6Validates usage, selector, matching type, hexadecimal encoding, and known digest lengths.
SSHFPAlgorithm, fingerprint type, fingerprinthost 300 IN SSHFP 4 2 123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0Validates integer ranges, hexadecimal encoding, and SHA-1/SHA-256 fingerprint lengths.
SMIMEAUsage, selector, matching type, association datahash._smimecert 300 IN SMIMEA 3 1 1 A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4Uses TLSA-style strict validation; check the provider directory for destination support.
CERTCertificate type, key tag, algorithm, certificatecert 300 IN CERT PGP 0 0 mQENBFExampleUses raw Record data and has no dnsconfig.js record function.

A DS for this zone belongs at its parent or registrar. An in-zone DS normally accompanies an NS delegation for a child. Use Settings → DNSSEC for provider-managed signing and follow DNSSEC transitions when changing delegation.

Other standard records#

TypeCanonical RDATAZone-file exampleValidation and provider notes
NAPTROrder, preference, flags, service, regexp, replacement@ 300 IN NAPTR 100 10 "U" "E2U+sip" "!^.*$!sip:info@example.com!" .Strict validation checks all six fields, integer ranges, flags, regexp/replacement exclusivity, and replacement hostname.
SPFSPF policy text@ 300 IN SPF "v=spf1 -all"Obsolete; publish SPF policy as TXT. The dnsconfig.js runtime uses TXT() or SPF_BUILDER, not SPF().
LOCLatitude, longitude, altitude, size, horizontal precision, vertical precisionoffice 300 IN LOC 51 30 12.748 N 0 7 39.611 W 0.00m 0.00m 0.00m 0.00mUse a LOC builder rather than hand-writing raw data.
URIPriority, weight, absolute URI_service 300 IN URI 10 1 "https://example.com/"Strict validation checks integer ranges and the absolute URI. It has no dnsconfig.js record function.
ALIASTarget hostname@ 300 IN ALIAS app.example.net.A provider-level flattening record, not a standard wire type; support is provider-specific.
DHCIDBase64 identifierhost 300 IN DHCID AAIBY2/AuCccgoJbsaxcQc9TUapptP69lOjxfNuVAA2kjEA=Uses raw Record data; verify it with the system that issued the identifier.
DNAMETarget hostnameold 300 IN DNAME new.example.net.The form allows one validated hostname target.
OPENPGPKEYBase64 public keyhash._openpgpkey 300 IN OPENPGPKEY mQENBFExampleStrict validation checks base64 shape.
RPMailbox name, TXT name@ 300 IN RP hostmaster.example.com. contact.example.com.Uses raw Record data; both values are DNS names.

LOC support is provider-specific. Check Supported providers before pushing a LOC record, especially in a multi-provider zone.

Redirect and forwarding types#

These are control-plane shortcuts rather than portable DNS wire types. A BIND zone file cannot represent them.

TypeValue in Record dataNative provider or behavior
URLDestination URLTemporary or provider-default redirect at DNSimple, DNS Made Easy, INWX, Joker, Namecheap, and Realtime Register.
URL301Destination URLPermanent redirect at DNS Made Easy, INWX, and Namecheap.
FRAMEDestination URLFramed redirect at DNS Made Easy, INWX, and Namecheap.
URLFWD"path" "target" code masking queryoctoDNS-compatible URL forward written natively by Constellix. Code is 301 or 302; masking is 0–2 and query forwarding is 0 or 1.
PORKBUN_URLFWD`destination redirect=301302
BUNNY_DNS_RDRDestination URLBunny DNS redirect record.
MXEProvider mail destinationNamecheap advertises it, but Add record hides MXE and dnsconfig.js has no MXE() function.

Migration translation converts between URL, URL301, URLFWD, PORKBUN_URLFWD, and BUNNY_DNS_RDR when the destination has an equivalent. The preview lists semantics that cannot carry over, such as masking, path forwarding, query forwarding, wildcard subdomains, or an exact redirect status. FRAME and other provider features remain unsupported where no safe equivalent exists.

The dnsconfig.js importer creates PORKBUN_URLFWD and BUNNY_DNS_RDR, and the exporter emits their DNSControl-style constructors. Porkbun import options accept permanent, temporary, 301, 302, 307, or masked behavior plus path and wildcard choices. Export warns when a 307 or masked record must become the constructor's temporary form. octoDNS YAML uses URLFWD. In a managed multi-provider zone, use Serve from when only one attached provider should receive a forwarding record.

Cloudflare pseudo-records#

The release catalog exposes four Cloudflare-only pseudo-types. They use raw Record data in the editor and are not accepted by the BIND parser.

TypeValue shapeDNSMigrator-style example
CF_REDIRECTSource pattern, destination@ 300 IN CF_REDIRECT "example.com/*" "https://www.example.com/$1"
CF_TEMP_REDIRECTSource pattern, destination@ 300 IN CF_TEMP_REDIRECT "example.com/*" "https://status.example.net/$1"
CF_SINGLE_REDIRECTRule name, HTTP code, expression, target expression@ 300 IN CF_SINGLE_REDIRECT "to-www" 301 "http.host eq \"example.com\"" "concat(\"https://www.\", http.host)"
CF_WORKER_ROUTERoute pattern, Worker script@ 300 IN CF_WORKER_ROUTE "example.com/api/*" "api-worker"

The dnsconfig.js constructor for CF_SINGLE_REDIRECT accepts 301, 302, 303, 307, or 308. Cloudflare proxying is separate: ordinary A, AAAA, and CNAME records use Proxy through Cloudflare metadata.

DNSMigrator reads and writes CF_REDIRECT, CF_TEMP_REDIRECT, and CF_SINGLE_REDIRECT through Cloudflare's Rulesets API, and CF_WORKER_ROUTE through the Workers Routes API. In addition to Zone → DNS → Edit, the token needs Zone → Single Redirect → Edit for redirect records and Zone → Workers Routes → Edit for Worker routes. See the Cloudflare provider guide.

Akamai, ClouDNS, PowerDNS, and appliance types#

TypeValue shapeDNSMigrator-style exampleRelease catalog owner
AKAMAICDNEdge hostnamewww 300 IN AKAMAICDN www.example.com.edgekey.netAkamai Edge DNS
AKAMAITLCAnswer type (DUAL, A, or AAAA) and target@ 300 IN AKAMAITLC DUAL example.edgesuite.net.Akamai Edge DNS
LUAEmitted record type and Lua expressionapp 300 IN LUA A "ifportup(443, {'192.0.2.1'})"PowerDNS, not LuaDNS
CLOUDNS_WRDestination URLgo 300 IN CLOUDNS_WR https://example.net/ClouDNS
BUNNY_DNS_PZNumeric pull-zone IDcdn 300 IN BUNNY_DNS_PZ 123456Bunny DNS
ADGUARDHOME_A_PASSTHROUGHEmpty RDATAhost 300 IN ADGUARDHOME_A_PASSTHROUGHAdGuard Home
ADGUARDHOME_AAAA_PASSTHROUGHEmpty RDATAhost 300 IN ADGUARDHOME_AAAA_PASSTHROUGHAdGuard Home
MIKROTIK_FORWARDERUpstream DNS server addressescorp 300 IN MIKROTIK_FORWARDER 192.0.2.53,192.0.2.54MikroTik
MIKROTIK_FWDForward-to addresscorp 300 IN MIKROTIK_FWD 192.0.2.53MikroTik
MIKROTIK_NXDOMAINEmpty RDATAblocked 300 IN MIKROTIK_NXDOMAINMikroTik

The two AdGuard passthrough types and MIKROTIK_NXDOMAIN require an empty canonical value. The release web save guard rejects empty non-alias values, so they cannot currently be created or imported successfully as managed-zone records.

Routing metadata#

A record set can carry weighted, latency, failover, geo, multivalue, geoproximity, or IP-routing metadata. Route 53 API imports preserve its weighted, latency, failover, geolocation, and multivalue policies, and Route 53-to-Route 53 migration keeps them. Translation also keeps a policy at another destination that advertises support; otherwise the preview flattens it to ordinary answers and explains the behavior lost. Source-account health-check IDs are retained with a warning because the destination must have a usable matching health check.

The direct record form does not create routing rules. Import them from a provider, dnsconfig.js weighted records, or octoDNS YAML, then use Serve from if only capable providers should receive them. Block when records can't be represented can require acknowledgement before an incompatible destination is skipped.

Alias constructors in dnsconfig.js#

R53_ALIAS and AZURE_ALIAS are constructor names, not canonical record types. The importer converts them to ordinary records with alias metadata:

dnsconfig.js
R53_ALIAS("cdn", "A", "d111111abcdef8.cloudfront.net.", R53_EVALUATE_TARGET_HEALTH(true), R53_ZONE("Z2FDTNDATAQYW2"))
AZURE_ALIAS("app", "A", "/subscriptions/0000/resourceGroups/dns/providers/Microsoft.Network/publicIPAddresses/app")

A Route 53 alias stores an allowed Route 53 record type with no ordinary values, plus a DNS target, optional hosted-zone ID, and optional health evaluation. The direct editor exposes aliases only for A and AAAA. An Azure alias stores A, AAAA, or CNAME with a resource ID and is available only by loading dnsconfig.js.

For the exact runtime function list and import losses, see dnsconfig.js import and export. Use the zone file validator for the release BIND parser’s standard-type and directive coverage.