Domain Name Service

Subscribe in your email box!

Subscribe in your feed reader!

I try to write about three times per week. Most of it is pretty good and will probably help you grow your business. If it doesn't, then I probably can't help you.

You can use a traditional RSS Feedreader with this fancy-dancy link. I think this approach is harder but if you want to do it the hard way, who am I to say otherwise?

You can use a traditional RSS Feedreader with this fancy-dancy link. I think this approach is harder but if you want to do it the hard way, who am I to say otherwise?

What is the Domain Name Service (DNS)?

posted this on Thursday, March 29, 2012 at about 2pm.
Corey Smith's Website on a Sketch

DNS stands for the Domain Name System. The DNS records tell the internet where to send your internet traffic. The most common (that I will discuss later) are address (A) records, CNAME records, name server (NS) records and mail exchange (MX) records.

So, what does this mean for you? How do you know what you should do to maintain functionality of your site and your email?

Where are the DNS records hosted?

In order for the internet to know where to send traffic, your DNS records must be hosted somewhere. There are three primary ways your DNS records can be hosted.

At your Domain Registrar

Where ever you buy the domain is your domain registrar. If you leave the Name Server Records (explained later) at your registrar, you can have complete access to your records when you need to and can fire your web hosting company any time without even having to contact them. 

At a Third Party DNS Location

This is a good alternative to your Domain Registrar. You have the same level of access (usually). If you have full access to your records, you should be fine managing this way. There are some risks with some DNS hosting services, but it may be a viable option for you. In some cases, this may cost you a small fee.

At Your Web Hosting Company

This option will allow you the freedom of having to worry about your domain name records should your Web hosting company need to make changes to your hosting service. You do run the risk, however. The risk is that they control what happens with that domain information. However, if you keep your domain name with your registrar and just allow your Web hosting company to manage your domain name records, you can mitigate this risk.

Problems with DNS records hosting.

Have you ever noticed sometimes that you go to http://example.com you don't get the same result as when you go to http://www.example.com? That usually is a problem with the way the DNS records are hosted. Sometimes even the domain registrar will get this wrong. It can almost always be fixed at the DNS host.

What are all those records?

There are a lot of different types of records that exist for the internet. There are only a couple that you need to worry about when managing your website. If you can't sleep one night, you can look at Wikipedia for a complete list of DNS record types. However, here is a simplified way to look at the important records that most people should be concerned about.

Address Record (A)

All websites use an IP address to be identified on the internet. An A record tells the internet what name the internet should associate with the name. For example, you can find my personal blog at http://209.161.20.209 (among others) but since that is not an easy number to remember, the A record tells the internet that when you type in http://www.coreysmith.ws the IP address will be automatically identified. My personal site is on a shared server so if you just go to the IP address, you will not find my site but a blank screen instead because that's how we have our servers set up.

If you are setting up your domain name to resolve to the right IP address, the A record will point to your main domain is "@". If you are setting up a subdomain for anything, you would simply create an "A" record with the subdomain name. You can have a different site at http://files.example.com. In that case, you would create an A record called "files" pointing to the appropriate IP address and make sure that the subdomain is configured on your web server.

CNAME

A CNAME will point to an A record or another website. The most common use (although there are many) is used to point the subdomain of www to your domain. If you want http://www.example.com to point to http://example.com, you would usually create a CNAME called “www” (without the quotes) and point it to your "@" A record.

Name Server Record (NS)

The NS record tells the internet what server is holding all the records. I ask my clients never to change this. If you do change this, all of the other records on your old Name Server become invalidated. If you had any custom records installed, they will become no more. Usually, your name servers are formatted like ns1.example.com and ns1.example.com and usually you'll have two of them for your domain name records.

Mail Exchanger Records (MX)

You need to have email and the MX records tell the internet where to direct that email. You may have email hosted at your office on an Exchange Server, you may have your email hosted with Google Apps or you may have other email arrangements (like with your registrar). The MX records direct traffic to the right email servers. You can change your website hosting without affecting your email if you have control over all the DNS records in one location.

How Do You Apply This Information?

Hopefully this wasn't too overwhelming. When you are making your website live or your are changing some email settings to route traffic, the person helping you will tell you what settings to change. The hardest part about most systems is that they all look different. I could give you instructions in one system but it probably wouldn't apply elsewhere. You should not be afraid to ask your Web company to help you with this settings change.

A Note about Shared versus Dedicated Hosting

One of the most common questions I get from clients that are on our shared hosting services is, “When I type in the IP address you gave me, it doesn’t resolve to my site, it resolves to some other site.” This is the same thing that happens from above when I gave you the example of my personal blog. When you have a shared hosting account on a server, many people will use the same IP address. What this means is that the server will know how to direct the visitor based on the domain name. If you need to have your IP address point to your site for some reason, that will often cost more money. Usually, that is not required for most small corporate or private websites. If you are selling something online, you'll need your own IP address and not a shared one.

Subscribe to RSS - Domain Name Service