For this case, the important data like real domain names and IPs have been replaced. Example of DNS Zone fileīelow, we have an example of a DNS zone file from a cPanel server. In some cases, for the MX records, for example, we can have additional fields like Priority between the DNS type and the host. and last but not least we have the host, also called destination. Next we have the kind of records, for example, A, TXT, MX, SRV, etc. After that comes the DNS class, which in most cases will be the usual IN, but there’s also another class known as CH. Then we have to set a TTL, for example, 3600. In the case of an A record, this would be the name of the subdomain. First, we must specify the data portion of this record. It’s very important to keep a certain format when we are editing a DNS zone. If we place two records in the same line, the DNS zone will not work properly, so remember to never do this.Īnd what kind of records can be used in a DNS zone file? All kinds of DNS records, of course, that’s the file’s purpose. Each line of this file will contain one and only DNS record, it can’t contain two records or more. In this file, the DNS records of our domain are stored. What is the DNS zone file exactly? To put it simply, the DNS zone file is where the data of the DNS Zone is the file, so we can say that the DNS zone and the DNS zone file is one and the same. In this case, is important to make sure that the subdomain is not present in the domain’s zone because this could create a conflict and lead to errors, like the subdomain not working properly, for example. In the case that you need to add a record o delete a record, then the same file will have to be edited.įor convenience and to keep an order, the best option is to keep all the records of a domain in the same DNS zone, though is possible to keep certain records, like A records (subdomains for example), in a DNS zone that is completely independent of the main domain’s DNS zone. If you ever need to modify the DNS records of a domain, you will need to edit the DNS zone file, because that’s where the data is stored. Like we were saying, this includes records like A records, TXT records, MX records and so on. Inside this DNS zone, all the DNS records of a domain are stored. What is a DNS Zone?Ī DNS zone, to put it simply, is a portion of the DNS system. This means, of course, that the subdomains will be stored in the DNS zone, but is also possible for a subdomain to have its own DNS zone if we want. Usually, we will have a DNS zone for each domain, and that zone will contain important records and settings related to our domain, which would include for example A records, TXT records, etc. These settings are what we know as DNS records, and to properly manage them a DNS zone is created. In a DNS system, we can find different domain names that have DNS settings of their own. Have you ever heard about DNS zones? If you have been in the hosting world for some time, then you probably have, but it is ok if you didn’t hear about this term.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |