Domains can be easily configured by using different types of DNS records, each serving a specific function. In this guide, we explain all record types and how they work.
You can set domain records in the DNS tab of your domain management. Simply click the green Add DNS record button. A popup window will open where you can create and configure new records as you wish.
We use the domain zap-hosting.com as an example to illustrate the different DNS record types. Please use your own domain in your case.
For Name, enter @ for the domain itself or just the first part, for example www. The full name as in the examples below works too. Always enter the targets of CNAME, MX, NS, and SRV records as a full hostname, for example mail.zap-hosting.com. You don't need to add a dot at the end; ZapX adds it automatically.
There are various types of DNS records, each with different meanings and purposes. We will now explain their significance and differences.
An A record points a domain name to an IPv4 address. This is the classic record type used to connect a domain or subdomain to a server.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | A | 123.123.123.123 | 3600 | -- |
An AAAA record works like an A record but points to an IPv6 address instead of an IPv4 address.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | AAAA | 2001:db8::1234:5678 | 3600 | -- |
A CAA record specifies which certificate authorities are allowed to issue SSL certificates for your domain. This increases your domain's security by preventing unauthorized certificate authorities from issuing valid certificates.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | CAA | 0 issue "letsencrypt.org" | 3600 | -- |
A CNAME record points a domain name to another domain name (an alias) instead of directly to an IP address. This is useful when the underlying IP address changes frequently.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| www.zap-hosting.com. | CNAME | zap-hosting.com. | 3600 | -- |
An MX record (Mail Exchange) specifies which mail server is responsible for receiving email for your domain. You can specify multiple mail servers with priorities; the server with the lowest value is contacted first.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | MX | mail.zap-hosting.com. | 3600 | 10 |
An NS record (Name Server) delegates a subdomain to another name server. This is a more advanced feature, used for example when a specific subdomain is managed by a completely different DNS service.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| shop.zap-hosting.com. | NS | ns1.other-provider.com. | 3600 | -- |
A PTR record maps an IP address back to a domain name (Reverse DNS). This is used, for example, to increase the trustworthiness of a mail server.
You don't create PTR records in your domain's DNS tab but on your server: for a VPS in the Settings tab, for a dedicated server in the Network tab, in each case in the Reverse DNS section. Enter your domain name under Hostname, for example mail.zap-hosting.com, and click Save.
An SRV record (Service) specifies the host and port where a particular service is available, for example, for a game server or TeamSpeak server. In addition to the Priority, you enter the Weight and the Port in separate fields here. Only the target host goes in the Content field; the example below uses weight 1 and port 9987.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| _ts3._udp.zap-hosting.com. | SRV | ts.zap-hosting.com. | 3600 | 10 |
An SSHFP record stores the fingerprint of an SSH host key for your domain. SSH clients can automatically verify this fingerprint to ensure they connect to the correct server.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | SSHFP | 4 2 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234 | 3600 | -- |
A TLSA record cryptographically binds a TLS/SSL certificate to a DNS record (DANE standard). This allows clients to verify that the exact expected certificate is used, in addition to the classic certificate check.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| _443._tcp.zap-hosting.com. | TLSA | 3 1 1 123456789abcdef123456789abcdef123456789abcdef123456789abcdef1234 | 3600 | -- |
A TXT record stores arbitrary text for your domain, for example for domain verifications or SPF records to protect against email spoofing. Enter the text without quotation marks " and without backslashes \. Many providers show SPF or DKIM values in quotation marks; simply leave them out.
| Name | Type | Value | TTL | Priority |
|---|---|---|---|---|
| zap-hosting.com. | TXT | v=spf1 include:_spf.zap-hosting.com ~all | 3600 | -- |
