What is DNS and what are A, MX and CNAME records?

 

Distributed Name System (DNS) is an Internet protocol that connects text based domain names to their numeric IP addresses. i.e. DNS translates www.domain.com to an IP address.


Name Server:
Listens for and answers requests for DNS information. Each ISP and Hosting Company has their own set of Name Servers. When you register or transfer a domain, you specify which provider's Name Servers are authoritive for a domain. When someone
tries to email you or visit your website, their ISP's servers query the authoritive Name Servers to find out which IP addresses to use.



Resource Records
An entry in the DNS that defines an Internet resource.

  • "A" Records:
    An "Address" record maps a name to an IP address. e.g.

    www.domain.com IN A 192.168.1.1

    mail.domain.com IN A 192.168.1.2
  • "CNAME" Records
    "Canonical Name" records allow you to set aliases for existing address records e.g.

    pop.domain.com IN CNAME mail.domain.com.

    pop3 IN CNAME mail

    mail IN A 192.168.1.2

    In the case above pop.domain.com and pop3.domain.com point to the same location. The pop3 line shows an abbreviated way of defining the record.
  • "MX" Records:
    "Mail eXchanger" records specify which servers are to be used for email delivery. Multiple mail servers can be specified with different preferences. This creates fault tolerance in the event a mail server is unreachable. The server with the lowest preference value is the first server that other mail servers attempt to contact. If that server is not available, external mail servers progress down the list to the server with the next lowest preference value. e.g.

    smtp IN MX 5 mail

    smtp2 IN MX mailbackup.isp.com.

    mail IN A 192.168.1.2


A * prefix can be used as short-hand for all prefixes. e.g.

* IN A 192.168.1.1

This maps www.domain.com ftp.domain.com etc. to 192.168.1.1



A @ prefix can be used as short-hand for a blank prefix. e.g.

@ IN A 192.168.1.1

This maps domain.com to 192.168.1.1



When you setup a domain, these records are set to the defaults for our servers.

Was this answer helpful?

 Print this Article

Also Read

I want to use a domain I already own, but do I have to transfer my domain name to you?

If you already own a domain name and you wish to use that domain name with a hosting account on...

How can I use my own nameservers?

  This is a step by step instructions to you which would help you in setting up your own...

How can I check my DNS is working?

  You can check your DNS settings from http://www.checkdns.net/quickcheckdomainf.aspxPlease...

I signed up using my own domain and changed my DNS. Why doesn't my domain work?

  SUMMARYThe customer owns an existing domain name and signed up for hosting services as a...

Can I test my site on your hosting service before I update my domain\'s name servers?

Yes. We assign every account with a temporary address so you can upload your files and view...