About this tool
Assemble one DNS zone-file line for an A, AAAA, CNAME, MX, TXT or NS record. Pick the type, fill in host, value and TTL, and the line is generated in your browser as you type.
The output is tab-separated in the usual zone-file order: name, TTL, class IN, type, then the data, for example @ 3600 IN A 192.0.2.1. An empty host becomes @ for the zone root, and an empty TTL falls back to 3600. A priority field appears only for MX and is put in front of the mail server name.
The tool applies two rules that commonly trip people up. For CNAME, MX and NS, a target that contains a dot but does not end in one gets a trailing dot added, because in a zone file a name without it is treated as relative and gets the zone name appended. For TXT, the value is wrapped in double quotes, backslashes and quotes are escaped, and text longer than 255 bytes is split into several quoted strings without breaking a multi-byte character.
The value is not validated: it will not check that an A record is a real IPv4 address, and many hosted DNS panels use their own forms rather than raw zone syntax. Review the line before you paste it.