The Domain Name System (DNS) is a distributed database, arranged hierarchically, containing records for Domain Names. The DNS system’s main aim is to match a Domain Name to an IP Address. In order to fulfill this role, the DNS Server contains Resource Records (Records) in a zone file, which contains the Domain Name and IP Address mappings for computers contained within that zone. All resource records have a Time To Live TTL (TTL), specifying the number of seconds other DNS servers and applications are allowed to cache the Record.
Grey Bear Enterprises provides a free lifetime DNS service that allows you to manage your DNS records on our globally distributed and highly redundant DNS infrastructure with each domain name.
Types of DNS records
Address(IPv4 A) Record: These are used to translate Domain Names into IP Addresses.
AAAA (IPv6) Record: The IPv6 Address Record is a much larger address space than that of a IPv4 Address Record. Addresses in IPv6 Address Records are 128 bits long while those in IPv4 Address Records are 32 bits long.
Mail Exchanger (MX) Record: An MX Record identifies the email server(s) responsible for a Domain Name. When sending an email to email@example.com, your email server must first lookup the MX Record for xyz.com to see which email server actually handles email for xyz.com (this could be mail.xyz.com or someone else’s email server like mail.isp.com). Then it looks up the A Record for the email server to connect to its IP Address. An MX Record has a Preference number, indicating the order in which the email server should be used. Email servers will attempt to deliver email to the server with the lowest preference number first, and if unsuccessful continue with the next lowest and so on.
Canonical Name (CNAME) Record: CNAME Records are Domain Name aliases. Often computers on the Internet have multiple functions such as Web Server, FTP Server, Chat Server, etc. To mask this, CNAME Records can be used, give a single computer multiple names (aliases). Sometimes companies register multiple Domain Names for their brand names but still wish to maintain a single website. In such cases, a CNAME Record may be used to forward traffic to their actual website. Example: www.ABC.in could be CNAME to www.abc.com. The most popular use of the CNAME Record is to provide access to a Web Server using both the standard www.yourdomainname.com and yourdomainname.com (without the www). This is usually done by adding a CNAME Record for the www name pointing to the short name [while creating an A Record for the shorter name (without www)]. CNAME Records can also be used when a computer or service needs to be renamed, to temporarily allow access through both the old and new name.
Name Server (NS) Record: NS Records identify the DNS servers responsible (authoritative) for a Zone. A Zone should contain one NS Record for each of its own DNS servers (primary and secondary). This mostly is used for Zone Transfer purposes (notify). These NS Records have the same name as the Zone in which they are located. The most important function of the NS Record is Delegation. Delegation implies that part of a domain is delegated to other DNS servers. You can also delegate sub-domains of your own Domain Name (such as subdomain.yourdomainname.com) to other DNS servers. An NS Record identifies the name of a DNS server, not the IP Address. Because of this, it is important that an A Record for the referenced DNS server exists, otherwise there may not be any way to find that DNS server and communicate with it. If an NS Record delegates a sub-domain (subdomain.yourdomainname.com)to a DNS Server with a name in that sub-domain (ns1.subdomain.yourdomainname.com), an A Record for that server (ns1.subdomain.yourdomainname.com) must exist in the Parent Zone (yourdomainname.com). This A Record is referred to as a Glue Record, because it doesn’t really belong in the Parent Zone, but is necessary to locate the DNS Server for the delegated sub-domain.
Text (TXT) Records: TXT Records provide the ability to associate some text with a domain or a sub-domain. This text is meant to strictly provide information and has no functionality as such. A TXT Record can store upto 255 characters of free form text. This Record is generally used to convey information about the zone. Multiple TXT Records are permitted but their order is not necessarily retained. Example: You may add a TXT Record for yourdomainname.com with the value as This is my email server. Here, if anybody was checking the TXT Records of yourdomainname.com, would notice the above text appearing in the TXT Record. TXT Record can be used to implement the following:
- Sender Policy Framework (SPF): Sender Policy Framework is an extension to the Simple Mail Transfer Protocol (SMTP). SPF allows the software to identify and reject forged addresses in the SMTP Mail From (Return-Path). SPF allows the owner of a domain to specify their mail sending policy, e.g. which mail servers they use to send mail from their Domain Name. Click here for information about SPF and how you may use it to authenticate emails being sent from your Domain Name. The technology requires two sides to work in tandem:
The domain owner publishes this information in a TXT Record in the domain’s DNS zone, and when someone else’s email server receives a message claiming to come from that domain, then
the receiving server can check whether the message complies with the domain’s stated policy. If, for example, the message comes from an unknown server, it can be considered a fake.
- DomainKeys: DomainKeys is an email authentication system (developed at Yahoo!) designed to verify the authenticity of the email sender and the message integrity (i.e., the message was not altered during transit). The DomainKeys specification has adopted aspects of Identified Internet Mail to create an enhanced protocol called DomainKeys Identified Mail (DKIM). Click here for information about DomainKeys and how you can prove and protect an Email Sender’s identity
Service (SRV) Record: An SRV or Service Record is a category of data in the DNS specifying information on available services. When looking up for a service, you must first lookup the SRV Record for the service to see which server actually handles it. Then it looks up the Address Record for the server to connect to its IP Address. The SRV Record has a priority field similar to an MX Record’s priority value. Clients always use the SRV Record with the lowest priority value first, and only fall back to other SRV Records if the connection with this Record’s host fails. If a service has multiple SRV records with the same priority value, clients use the weight field to determine which host to use. The weight value is relevant only in relation to other weight values for the service, and only among SRV Records with the same priority value. Newer Internet Protocols such as SIP (Session Initiation Protocol) and XMPP (Extensible Messaging and Presence Protocol) often require SRV support from clients.
Start of Authority (SOA) Record: Each Zone contains a single SOA Record, which holds the following values for the Zone:
Name of Primary DNS Server: The Domain Name of the Primary DNS server for the Zone. The Zone should contain a matching NS Record.