About this tool
Generate correctly formatted A, AAAA, CNAME, TXT, SRV and ALIAS zone-file records with full syntax validation.
This generator produces syntactically valid DNS records — A, AAAA, CNAME, TXT, SRV and ALIAS — in RFC 1035 zone-file format, validating every field before it emits a line. It checks IPv4 and IPv6 address syntax, the 63-character label and 255-character name limits, the RFC 2181 TTL range, RFC 2782 SRV structure, and blocks illegal patterns like a CNAME at the zone apex. It is for developers and admins who edit zones by hand or paste records into a hosting panel.
Open DNS Record Generator on AltFTool — it loads instantly in your browser.
Provide your input — an image, text, or data.
Let the tool analyze or generate the result.
Review, refine, and reuse the output wherever you need it.
IPv4 octets, IPv6 compression, label lengths, TTL bounds and SRV numeric ranges are all checked.
Rejects CNAME at the apex (RFC 2181) and CNAMEs pointing at IP addresses before they break your zone.
Values over 255 characters are chunked into multiple quoted strings exactly as RFC 1035 requires.
Because RFC 2181 says a name holding a CNAME may hold no other data, and the zone apex must always hold SOA and NS records, a CNAME at the root is illegal. Use your provider's ALIAS, ANAME or CNAME-flattening feature instead — those answer as normal A/AAAA records while following a hostname target.
Each character-string inside a TXT record is limited to 255 octets by RFC 1035, but one TXT record can carry multiple strings that resolvers concatenate. Long values such as DKIM public keys are therefore split into several quoted 255-character chunks within the same record.
Per RFC 2782, clients contact the target with the lowest priority value first; among targets sharing a priority, the weight sets the proportion of traffic each receives; and the port tells the client which port the service listens on. All three are written in that order before the target hostname.
A CNAME is a standard DNS type that redirects one name to another but cannot exist at the zone apex, while ALIAS (also called ANAME or CNAME flattening) is a provider-side feature that follows a hostname target and answers with its A/AAAA addresses, so it works at the apex. ALIAS is not defined in any RFC, so its syntax varies by DNS host.