Managing DNS Records on Templates β
This page explains how to view the DNS records of a template as well as how to add and remove such records.
Viewing the DNS Records β
If you click the name of a template, you will be redirected to the template'smanagement page. This is where you can view the list of DNS records included in the template. Here's what each field in the list stands for:
- Host: This is the hostname or IP address of every DNS record.
- Record type: The type of DNS Record.
- Value: Depending on the record type, this field displays an IP address, an alias, a name server, a hostname, or a text.
- Replacement
- Priority
- Weight
- M: If you click this icon, you can edit the details of a specific DNS record.
Adding a DNS Record β
Once you're in the template's management page, click the Add DNS records button. This is where you select the record type and configure each record accordingly:
Click here to view records for forward DNS zones.
| Record Type | Details |
|---|---|
| IP Address (A) | Maps a hostname to a 32-bit IPv4 address. Type A rules have the following format: hostname. IN A XXX.XXX.XXX.XXXwhere: - XXX.XXX.XXX.XXX is the IP address for the hostname.- hostname. is the zone name or one of its subdomains.Examples: domain.com. IN A 1.2.3.4 subdomain.domain.com. IN A 1.2.3.4 domain.com. IN A [IP] Click here for more info on this type of record. |
| AAAA Record (AAAA) | Maps a hostname to a 128-bit IPv6 address. AAAA rules have the following format: hostname. IN AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAA:AAAAwhere: - AAAA:AAAA:... is the IPv6 address for the hostname.- hostname. is the zone name or a subdomain.Examples: domain.com. IN AAAA abcdπ’ffff:0:12:3:ab1:aa subdomain.domain.com. IN AAAA abcdπ’ffff:0:12:3:ab1:aa Click here for more info on this type of record. |
| Certification Authority Authorization (CAA) | Specifies one or more Certification Authorities (CAs) allowed to issue certificates for the domain. Format: hostname. IN CAA flags tag valuewhere: - flags = 0β255 (critical flag)- tag = ASCII string identifying the property- value = value associated with the tagThe CAA record contains a flags byte and a tagβvalue pair (βpropertyβ). Multiple CAA records can coexist. Available tags: - issue β authorizes a CA to issue certificates- issuewild β authorizes wildcard certificates- iodef β URL for reporting policy violationsExamples: example.com. IN CAA 0 issue ";" example.com. IN CAA 0 issue "letsencrypt.org" example.com. IN CAA 0 issuewild "comodoca.com" example.com. IN CAA 0 iodef "mailto:example@example.com" |
| Alias (CNAME) | Alias (canonical name) pointing one hostname to another. Useful for multiple services on the same IP (ftp.example.com, www.example.com), or multiple HTTP servers on the same host. Format: hostname. IN CNAME servername.where: - hostname. is the zone name or a subdomain- servername. is an FQDN inside or outside the zoneExamples: ftp.domain.com. IN CNAME inside.domain.com. ftp1.domain.com. IN CNAME outside.zone.com. k1._domainkey.domain.com. IN CNAME dkim.zone.com. RFC 1034: If a CNAME exists at a node, no other data must exist at that node. Click here for more info. |
| Nameserver (NS) | Maps a domain name to its authoritative name servers. Format: hostname. IN NS servername.where: - hostname. is the zone or subdomain- servername. is an authoritative nameserverExamples: domain.com. IN NS ns1.example.com. domain.com. IN NS ns2.example.com. Best practice: at least two NS records for each public domain. Click here for more info. |
| Mail exchanger (MX) | Maps a domain to its mail exchange servers. Format: hostname. IN MX preference servername.where: - hostname. = zone or subdomain- preference = priority (lower = higher priority)- servername. = mail server FQDNExamples: mail.domain.com. IN MX 10 domain.com. webmail.domain.com. IN MX 5 domain.com. Click here for more info. |
| Text record (TXT) | Allows arbitrary text in DNS. Used for SPF, DKIM, DMARC, verification, etc. Format: hostname. IN TXT "Text"Examples: domain.com. IN TXT "k=rsa; p=MEwwDQYerwqEWwE" subdomain.domain.com. IN TXT "this is a test" Click here for more info. |
| Service Record (SRV) | Specifies location of a service (protocol, port, target). Format: _Service._Protocol.Hostname. IN SRV TTL Priority Weight Port TargetParameters: - Service β symbolic service name- Protocol β TCP/UDP- Hostname. β domain- TTL β time to live- Priority β lower = higher priority- Weight β load balancing- Port β port number- Target β target hostname (not CNAME!)Examples: _service._tcp.domain.com. IN SRV 0 1 9 subdomain.domain.com. *._tcp.domain.com. IN SRV 0 0 0 . Click here for more info. |
| NAPTR Record (NAPTR) | Naming Authority Pointer. Used for rewrite rules (ENUM, SIP, etc.). Format: order preference services flag regexp replacementParameters: - order β processing order- preference β secondary sort- services β resolution service- flag β next lookup modifier- regexp β primary rewrite rule- replacement β fallback rewrite ruleExamples: domain.com. IN NAPTR 100 10 "u" "sip+E2U" "!^.$!sip:information@foo.se!i" . subdomain.domain.com. IN NAPTR 102 10 "u" "smtp+E2U" "!^.$!mailto:information@foo.se!i" . Click here for more info. |
Click here to view records for reverse DNS zones.
| Record Type | Details |
|---|---|
| Nameserver (NS) | Specifies a host which should be authoritative for the specified class. For class C reverse zones, NS records for $ORIGIN are accepted and classless delegation records are supported (RFC 2317, chapter 4). Important notes: β’ NS records for $ORIGIN appear bold in the interface. β’ A primary nameserver can be selected for zones (required by some local TLDs). β’ At least one NS must exist for $ORIGIN β recommended minimum is two for public domains. Class behavior: β’ Class A & B: NS records supported for $ORIGIN and inferior zones. Classless delegation not supported. β’ Class C: Classless delegation supported. DNS Manager can auto-generate matching CNAMEs if Automatically generate is enabled (available when subnet mask < 24 β numerical value > 24). Record format: ip_part.host_ip_addr.in-addr.arpa. IN NS servername.Where: β’ host_ip_addr.in-addr.arpa. β zone nameβ’ ip_part β remainder of the IP completing the address (varies by class)β’ servername. β authoritative nameserver hostnameExamples: 1.2.3.in-addr.arpa. IN NS ns2.server.com.1.2.3.in-addr.arpa. IN NS ns3.server.com.0.1.2.3.in-addr.arpa. IN NS example.com.Click here for more information. |
| Reverse record (PTR) | Maps an IPv4 address to a hostname β used for reverse DNS lookup in the in-addr.arpa. domain. Record format: IPaddress IN PTR hostname.Where: β’ IPaddress β IPv4 address under IN-ADDR.ARPAβ’ hostname. β forward hostname associated with that IPExample: 5.1.2.3.in-addr.arpa. IN PTR test.com.Click here for more information. |
| Alias for record (CNAME) | Canonical name alias mapping (supported only in Class C reverse zones, per RFC 2317). Record format: ip_part.network.host_ip_addr.in-addr.arpa. IN CNAME ip_part.host_ip_addr.in-addr.arpa.Where: β’ ip_part β IP completion segmentβ’ network β subnet maskβ’ host_ip_addr.in-addr.arpa. β zone nameExamples: 0.1.2.3.in-addr.arpa. IN CNAME 0.0.1.2.3.in-addr.arpa.1.1.2.3.in-addr.arpa. IN CNAME 1.0.1.2.3.in-addr.arpa.7.1.2.3.in-addr.arpa. IN CNAME 7.0.1.2.3.in-addr.arpa.Click here for more information. |
| Text record (TXT) | Stores arbitrary text β supports SPF, DomainKeys and other DNS-metadata functions. Record format: ip_part.host_ip_addr.in-addr.arpa. IN TXT "Text information"Where: β’ ip_part β completion segment of the IPβ’ host_ip_addr.in-addr.arpa. β zone nameβ’ "Text information" β any text payloadExample: 4.1.2.3.in-addr.arpa. IN TXT "This is a test"Click here for more information. |
Click here to view record types for reverse IPV6 dns zones
| Record Type | Details |
|---|---|
| Nameserver (NS) | Specifies an authoritative nameserver for an IPv6 reverse zone. NS records may be defined only for $ORIGIN. Record format: ipv6_part.host_ipv6_addr.IP6.ARPA. IN NS servername.Where: β’ ipv6_part β completes the IPv6 address when prepended to host_ipv6_addrβ’ host_ipv6_addr.IP6.ARPA. β zone nameβ’ servername. β authoritative nameserver hostnameExamples: 1.0.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6.7.8.9.0.A.B.C.D.E.F.IP6.ARPA. IN NS example.com.5.5.1.3.2.1.0.2.3.4.5.6.7.8.9.0.1.2.3.4.5.6.7.8.9.0.A.B.C.D.E.F.IP6.ARPA. IN NS example.com.For more details, see RFC 4291. |
| Reverse Record (PTR) | Maps an IPv6 address to a hostname β implements reverse DNS lookup in the IP6.ARPA domain.Record format: IPv6_address IN PTR hostname.Where: β’ IPv6_address β IPv6 reference in IP6.ARPAβ’ hostname. β resolved canonical hostnameExamples: 8.b.d.0.1.0.0.2.IP6.ARPA. IN PTR test.com.1.1.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.B.D.0.1.0.0.2.IP6.ARPA. IN PTR test.com.*.1.1.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.B.D.0.1.0.0.2.IP6.ARPA. IN PTR test.com.For more details, see RFC 4291. |
Click here to view record types for E.164 zones.
| Record Type | Details |
|---|---|
| Nameserver (NS) | Maps a domain name to authoritative DNS servers. NS records are required for delegation. Record format: hostname. IN NS servername.Where: β’ hostname. β zone name or subdomainβ’ servername. β authoritative nameserverExamples: 1.2.e164.arpa. IN NS ns1.example.com.1.2.e164.arpa. IN NS ns2.example.com.5.1.2.e164.arpa. IN NS ns1.example.com.Additional notes: β’ $ORIGIN NS records appear bold in interfaceβ’ At least one NS required per zone (recommended minimum 2 for public domains) β’ Primary selection available in DNS Manager UI More info: IETF |
| NAPTR record (NAPTR) | Naming Authority Pointer record β used for URI resolution and rewriting, especially for telephony (ENUM). Record format: order preference services flag regexp replacementWhere: β’ order β evaluation order when multiple records existβ’ preference β priority among identical order valuesβ’ services β resolution protocol (e.g. sip, smtp)β’ flag β affects next DNS lookup stageβ’ regexp β rewrite rule logicβ’ replacement β fallback replacement stringExamples: 1.2.e164.arpa. IN NAPTR 100 10 "u" "sip+E2U" "!^.*$! sip:information@foo.se!i" .1.2.e164.arpa. IN NAPTR 102 10 "u" "smtp+E2U" "!^.*$! mailto:information@foo.se!i" .More info: IETF |
DNS Template Example β
| Host | Record type | Value |
|---|---|---|
| [domain]. | NS | ns.[domain]. |
| [domain]. | NS | ns1.example.com. |
| [domain]. | A | [IP] |
| ns.[domain]. | A | 10.150.11.100 |
| mail.[domain]. | A | [IP] |
| ns.[domain]. | A | [IP] |
| webmail.[domain]. | A | [IP] |
| [domain]. | MX (10) | mail.[domain]. |
| ftp.[domain]. | CNAME | [domain]. |