The most common types of DNS records are:
The form for resource records input is organized as follows:
To add a DNS record to a zone file:
- If you leave the Name field empty, the record will affect just the original domain name, not a sub-domain. In this case, after you save the record you will see the @ symbol in the record name column.
- If you type the @ symbol into the Name field, this will mean the same as described above.
- If you type the sub-domain with the trailing dot into the Name field (e.g., subdomain.domain.com.) the record will affect the sub-domain named subdomain.domain.com.
- If you type the sub-domain without the trailing dot into the Name field, (e.g., subdomain.my), the domain name indicated in this record (i.e., the contents of the Host field for example, domain.com) will be automatically appended to the record name and, as a result the record will affect the sub-domain named subdomain.my.domain.com.
Note: The minimal default TTL for all the resource records containing in the zone file is indicated in the SOA record. And this default TTL can be re-defined for every record containing in the zone file. Thus, if you leave the TTL field empty, then the default minimal TTL will be applied to this record.
Examples:
first.mydomain.com. IN A 192.168.40.34
which means that the first.mydomain.com
domain is mapped into the 192.168.40.34
IP address you should indicate the following in the form fields:
first.mydomain.com.
in the Name field (do not forget the trailing dot)A
from the Type drop-down menu192.168.40.34
into the Value fieldmail.first.mydomain.com. IN CNAME first.mydomain.com.
which means that the first.mydomain.com
machine is also can be called as mail.first.mydomain.com
you should indicate the following in the form fields:
mail.first.mydomain.com.
in the Name field (do not forget the trailing dot)CNAME
from the Type drop-down menufirst.mydomain.com.
into the Value field.Note: Remember that there must always be an A record for the machine before aliases can be added.
mydomain.com. IN MX 10 mail.first.mydomain.com.
which allows your e-mail address to be "user@mydomain.com" rather than "user@mail.first.mydomain.com", specify the following in the form fields:
mydomain.com.
in the Name field (do not forget the trailing dot)MX
from the Type drop-down menu10
into the Priority fieldmail.first.mydomain.com.
(your mail server name) into the Value fieldfirst.mydomain.com. IN NS ns3.mydomain.com.
that declares the ns3.mydomain.com
as the authoritative name server for the first.mydomain.com
domain, specify the following in the form fields:
first.mydomain.com.
in the Name field (do not forget the trailing dot)NS
from the Type drop-down menuns3.mydomain.com
in the Value field._
htt
p._tcp.example.com 86400 IN SRV 0 5 5060 httpserver.example.com.
that points to a server named httpserver.example.com listening on TCP port 80 for HTTP protocol connections. The priority given here is 0, and the weight is 5, specify the following in the form fields:
_http._tcp
in the Name field.86400
in the TTL fieldSRV
from the Type drop-down menu.0 5 5060
httpserver.example.com.
into the Value field.example.com IN 86400 TXT "Hostname used for examples only"
that specifies the example.com hostname as an example hostname, enter the following values into the form fields:
example.com
into the Name field.86400
in the TTL fieldTXT
from the Type drop-down menu."Hostname used for examples only"
into the Value field.Note: There also must be an A record in your DNS for each machine you enter as a name server in your domain. There must be at least two NS records in every DNS entry.