DNS Records Entries (Examples Please)

Posted on 2011-10-20
Last Modified: 2012-05-12

I currently have the ability to edit the following records in my DNS control panel from my hosting provider who provides me with web and email hosting. I have looked in the internet at what these mean but I am still not too sure on what they can be used for and was really looking for some real life examples of what they are used for and when I might want to update them and any more information about them that might be useful. I would really like to learn about these more.

The records I have the ability to change are :

A Record (Address Record)
CNAME Records (Canonical Name Record)
MX Record (Mail Exchange Record)
AAAA Record (IPv6 Address Record)
SRV Record (Service Locator Record)
SPF Record (Sender Policy Record)
TXT Record (Text Record)

If examples could be given for what each are used for and when you might want to change them that would be a great start.


Question by:gisvpn
    LVL 2

    Accepted Solution

    -A Record (Address Record) points to domains and hostnames with defining a static IP address of a choice, the most coommon record.

    -MX record identifies the server to which e-mail is directed

    -CNAME record is used to create aliases that point to other names, usually A records

    -AAAA records similar to the A record, but it allows you to point the domain to an Ipv6 address

    -SPF record -when a mail server receives an email it can check the DNS zone of the sending domain for a SPF record.,t hat will tell them if the email did indeed come from that domain name, using an authorised SPF address. This stops spammers forging mail headers, i.e. pretending that their email came from your domain when it didn’t.

    -TXT record  (text) - is used to hold some text information. You can put virtually any free text you want within a TXT record. A TXT record has a hostname so that you can assign the free text to a particular hostname/zone.

    - SRV record -is an advanced type of record which allows you to specify services that you have on your domain.
    For example, you might want to specify that you have FTP access on your domain. You could use a CNAME to create a subdomain, but this would only tell people the address of the server. An SRV record will tell people the following information in addition to the address:

    The Service Name (e.g. _ftp)
    The Protocol (e.g. _tcp)
    The Port Number that this service is on (e.g. 21)
    The Priority (An arbitrary number which tells people which record to pick if you have several SRV records with the same Name and Protocol)
    The Weight (Another arbitrary number which tells people which records should be used more often if you have several SRV records with the same Name and Protocol

    Hope this helps
    LVL 19

    Assisted Solution

    by:Miguel Angel Perez Muñoz
    A record is used on inverse resolution. Resolves IP into a hostname.
    CNAME record is an "alias". When you create a cname, resolver uses them to get original name and after, resolves the name. Example, I create an alias for When I try to resolve, client get Then, resolve
    MX record is used to publish email servers for this domain. Yo can have various with different priority (lower number is first priority).
    AAAA is equal to A record but used for IP v.6
    SRV Record is used to publish a service.
    SPF Record is used to publish email servers authorized to send email on one domain. Is used to fight against spam.
    TXT record is a record that have text on his response.

    Author Comment

    Hi aladin404 & Drashiel.

    Thanks for the posts. Could i ask a few questions.

    Regarding the SPF Record It sounds like this is some sort of validation system to reduce or prevent SPAM being used by the domain I own? Do you have any examples of what I might want to configure/set up or change here. Currently the domain has no records attached to the SPF record. I can however configure a hostname and value - but I am not sure on what these are.

    I am not sure I understand the TXT record; what would it actually be used for, do you have an example at all of when this would be used.

    Many thanks, this has helped!



    LVL 9

    Assisted Solution

    A Record (Address Record) - If it was not for A record we would have been typing IP Addresses to browse various websites on the internet. To put it simply, each A record has two entries: HostName e.g. and an IP Address mapped to it such as So, now when you browse to your browser looks up a Name Server and finds out that it needs to talk to for retrieving content.

    CNAME Records (Canonical Name Record) - Canonical Names are primarily Aliases to A records created earlier. Now question Why to create a CNAME Record when I can create a A record and they both serve the same purpose. The logical reasoning behind this is, how about having 10 A records for one IP Addresses and you had to suddenly change the IP Address, this would mean you have to update 10 A records, but if you were using CNAME you would have update only one A record.

    MX Record (Mail Exchange Record) - These records are kinda transparent to us but are used primarily for Mailing Servers to find the SMTP server for your email address. Now, you may have your webmail running on different server and SMTP on different server. Simply put MX records generally have the SMTP Server address.

    AAAA Record (IPv6 Address Record) We are still waiting for full IPv6 adoption, soon these will play the role A records have been playing for a while.

    SRV Record (Service Locator Record) A Service record (SRV record) is a specification of data in the Domain Name System defining the location, i.e. the hostname and port number, of servers for specified services. Some Internet protocols such as the Session Initiation Protocol (SIP) and the Extensible Messaging and Presence Protocol (XMPP) often require SRV support by network elements. If you had ever used Domain Logon, it runs on the basis of SRV records such as SRV 0 0 389

    SPF Record (Sender Policy Record) Sender Policy Framework (SPF) is an email validation system designed to prevent email spam by detecting email spoofing, a common vulnerability, by verifying sender IP addresses. SPF allows administrators to specify which hosts are allowed to send mail from a given domain by creating a specific SPF record (or TXT record) in the Domain Name System (DNS). Mail exchangers use the DNS to check that mail from a given domain is being sent by a host sanctioned by that domain's administrators. Read more on SPF @

    TXT Record (Text Record) A TXT (text) record is used to hold some text information. You can put virtually any free text you want within a TXT record. A TXT record has a hostname so that you can assign the free text to a particular hostname/zone. The most common use for TXT records is to store SPF (sender policy framework) records and to prevent emails being faked to appear to have been sent from you.

    Hope this helps....


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
    I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now