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:
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.
| Type | Fields in the editor | Zone-file example | Validation and provider notes |
|---|---|---|---|
| A | Address | www 300 IN A 192.0.2.10 | The form and strict validator require a valid four-octet IPv4 address; canonical storage uses decimal octets. |
| AAAA | Address | www 300 IN AAAA 2001:db8::10 | The address is validated, compressed, and lowercased. |
| CNAME | Target | www 300 IN CNAME app.example.net. | One hostname target is allowed; apex support depends on the provider. |
| MX | Priority, Mail server | @ 300 IN MX 10 mx1.mail.example.net. | Priority is 0–65535; only 0 . is a valid null MX. |
| TXT | Text | @ 300 IN TXT "v=spf1 -all" | Enter logical text without quotes; provider total-value limits differ. |
| NS | Target | child 3600 IN NS ns1.child.example. | Use NS for a child delegation. Apex NS is managed through nameserver settings and the push-safety guard. |
| SRV | Priority, Weight, Port, Target | _sip._tcp 300 IN SRV 10 5 5060 sip.example.net. | Each number is 0–65535; . is allowed as the target. |
| CAA | Flags, 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. |
| PTR | Target | 10 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#
| Type | Canonical RDATA | Zone-file example | Validation and provider notes |
|---|---|---|---|
| SOA | Primary NS, mailbox, serial, refresh, retry, expire, minimum | @ 3600 IN SOA ns1.example.net. hostmaster.example.com. 1 3600 600 1209600 300 | Provider-managed in normal pushes. It is hidden from Add record and protected by the apex-NS guard. |
| DS | Key tag, algorithm, digest type, digest | child 300 IN DS 12345 13 2 49FD46E6C4B45C55D4AC0123456789ABCDEF0123456789ABCDEF0123456789AB | Validates key tag, algorithm, digest type, hexadecimal data, and digest length. |
| DNSKEY | Flags, protocol, algorithm, public key | @ 300 IN DNSKEY 257 3 13 BASE64PUBLICKEY | Hidden and omitted from normal plans; supported providers create it when DNSSEC is enabled. Lint validates flags, protocol, algorithm, and base64 shape. |
| HTTPS | Priority, 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. |
| SVCB | Priority, target, service parameters | _dns 300 IN SVCB 1 resolver.example.net. port=853 alpn="dot" | Uses the same strict parameter validation as HTTPS. |
| TLSA | Usage, selector, matching type, association data | _443._tcp 300 IN TLSA 3 1 1 0C72AC70B745AC19998811B131D662C9AC69DBDBE7CB23E5B514B56664C5D3D6 | Validates usage, selector, matching type, hexadecimal encoding, and known digest lengths. |
| SSHFP | Algorithm, fingerprint type, fingerprint | host 300 IN SSHFP 4 2 123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0 | Validates integer ranges, hexadecimal encoding, and SHA-1/SHA-256 fingerprint lengths. |
| SMIMEA | Usage, selector, matching type, association data | hash._smimecert 300 IN SMIMEA 3 1 1 A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4A1B2C3D4 | Uses TLSA-style strict validation; check the provider directory for destination support. |
| CERT | Certificate type, key tag, algorithm, certificate | cert 300 IN CERT PGP 0 0 mQENBFExample | Uses 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#
| Type | Canonical RDATA | Zone-file example | Validation and provider notes |
|---|---|---|---|
| NAPTR | Order, 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. |
| SPF | SPF 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(). |
| LOC | Latitude, longitude, altitude, size, horizontal precision, vertical precision | office 300 IN LOC 51 30 12.748 N 0 7 39.611 W 0.00m 0.00m 0.00m 0.00m | Use a LOC builder rather than hand-writing raw data. |
| URI | Priority, 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. |
| ALIAS | Target hostname | @ 300 IN ALIAS app.example.net. | A provider-level flattening record, not a standard wire type; support is provider-specific. |
| DHCID | Base64 identifier | host 300 IN DHCID AAIBY2/AuCccgoJbsaxcQc9TUapptP69lOjxfNuVAA2kjEA= | Uses raw Record data; verify it with the system that issued the identifier. |
| DNAME | Target hostname | old 300 IN DNAME new.example.net. | The form allows one validated hostname target. |
| OPENPGPKEY | Base64 public key | hash._openpgpkey 300 IN OPENPGPKEY mQENBFExample | Strict validation checks base64 shape. |
| RP | Mailbox 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.
| Type | Value in Record data | Native provider or behavior |
|---|---|---|
| URL | Destination URL | Temporary or provider-default redirect at DNSimple, DNS Made Easy, INWX, Joker, Namecheap, and Realtime Register. |
| URL301 | Destination URL | Permanent redirect at DNS Made Easy, INWX, and Namecheap. |
| FRAME | Destination URL | Framed redirect at DNS Made Easy, INWX, and Namecheap. |
| URLFWD | "path" "target" code masking query | octoDNS-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=301 | 302 |
| BUNNY_DNS_RDR | Destination URL | Bunny DNS redirect record. |
| MXE | Provider mail destination | Namecheap 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.
| Type | Value shape | DNSMigrator-style example |
|---|---|---|
| CF_REDIRECT | Source pattern, destination | @ 300 IN CF_REDIRECT "example.com/*" "https://www.example.com/$1" |
| CF_TEMP_REDIRECT | Source pattern, destination | @ 300 IN CF_TEMP_REDIRECT "example.com/*" "https://status.example.net/$1" |
| CF_SINGLE_REDIRECT | Rule 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_ROUTE | Route 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#
| Type | Value shape | DNSMigrator-style example | Release catalog owner |
|---|---|---|---|
| AKAMAICDN | Edge hostname | www 300 IN AKAMAICDN www.example.com.edgekey.net | Akamai Edge DNS |
| AKAMAITLC | Answer type (DUAL, A, or AAAA) and target | @ 300 IN AKAMAITLC DUAL example.edgesuite.net. | Akamai Edge DNS |
| LUA | Emitted record type and Lua expression | app 300 IN LUA A "ifportup(443, {'192.0.2.1'})" | PowerDNS, not LuaDNS |
| CLOUDNS_WR | Destination URL | go 300 IN CLOUDNS_WR https://example.net/ | ClouDNS |
| BUNNY_DNS_PZ | Numeric pull-zone ID | cdn 300 IN BUNNY_DNS_PZ 123456 | Bunny DNS |
| ADGUARDHOME_A_PASSTHROUGH | Empty RDATA | host 300 IN ADGUARDHOME_A_PASSTHROUGH | AdGuard Home |
| ADGUARDHOME_AAAA_PASSTHROUGH | Empty RDATA | host 300 IN ADGUARDHOME_AAAA_PASSTHROUGH | AdGuard Home |
| MIKROTIK_FORWARDER | Upstream DNS server addresses | corp 300 IN MIKROTIK_FORWARDER 192.0.2.53,192.0.2.54 | MikroTik |
| MIKROTIK_FWD | Forward-to address | corp 300 IN MIKROTIK_FWD 192.0.2.53 | MikroTik |
| MIKROTIK_NXDOMAIN | Empty RDATA | blocked 300 IN MIKROTIK_NXDOMAIN | MikroTik |
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:
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.