Developers Documentation



301 error for file:

User Tools

Site Tools

DNS Primer

The Domain Name System (DNS) is not difficult to understand, but you do have to take a little time to learn some of the rules. Basically, DNS is used on the Internet to map names to IP addresses. A mapping is simply an association between a system name (e.g. and a system's IP address (e.g. However, different services use different types of mappings or records. The example below will walk you through a configuration for a typical server.

Understanding DNS Records - By Example

Let's go through a typical example. You have just registered as your domain.

  • You use your primary system as a web server and a mail server.
  • The web server is to be accessible at and
  • You have a password protected file share web site at
  • Just in case, you also want to specify a backup mail server.
  • You have a remote office with a cable modem connection, and you want to use as the name for VPN connections.
  • You have a video camera connected to the Internet with a static IP -

The DNS configuration for this set up is shown in the table below. Don't worry about the details yet… keep reading!

A Records
example.com69.90.141.78 (your primary server)
CNAME Records Don't do this… see why below
MX Records (not intuitive!)

A Records / Host Records

The bread and butter behind the DNS system is the A Record. The A record (address record, or host record) maps a domain name to an IP address on the Internet.

In our example, the ClearOS system is hosting Using the Dynamic DNS tools, you would set your domain to be and the IP address ( will be automatically updated via dynamic DNS. For your camera, you need to create a static A record with the IP address ( associated with

So, you have two names mapped to IP addresses (A Records):

  • -
  • -

CNAME Records / Alias Records

CNAME Records (Canonical Name records) act as aliases for hostnames. Instead of mapping a domain name to an IP address (an A record) you can map a domain name to another domain name. In the example, you have:

  • -
  • -
  • -

What are the advantages of CNAMEs? You can map multiple domain names mapped to one - sometimes dynamic - IP address. In our example, and will now be associated with's IP address (our first Dynamic DNS A record). In the case of the remote office, you change a not-so-easy-to-remember-super-long domain name into something better.

MX Records / Mail Records

MX Records (Mail eXchanger record) tells mail systems how to handle mail that is addressed to a particular domain. Like CNAME records, the MX record maps a domain name to another domain name.

In the example, we use our primary machine as a server for mail to Every MX record is tagged with a priority number. The MX record with the lowest number is the primary mail server. If the primary server is unavailable, the backup mail server (also called a “secondary mail server”) will queue the mail. You can use the ClearCenter Mail Backup service sto backup your mail when your network is offline.

Mail servers must be an A Record! You might be tempted to use an alias/CNAME like for your mail server… Don't do it! MX records must be pointing to an A Record.

userguides/clearsdn/clearcenter_dns_service/dns_primer.txt · Last modified: 2015/03/01 22:26 (external edit)