Solved

Adding CNAME record to DNS

Posted on 2009-05-19
13
979 Views
Last Modified: 2012-08-14
Hi,

I need to add a CNAME to an existing DNS record. The CNAME is facilities.domain.com

Should I add "facilities.domain.com" or "facilities.domain.com." [nb the period at the end]

I have heard that a period must be added at the end? Or is this if I only add "facilities", so that I add "facilities."?

0
Comment
Question by:kam_uk
13 Comments
 
LVL 5

Expert Comment

by:Neranel
ID: 24425917
a FUlly Qualified Domain Name always ends with a period.  
"facilities.domain.com."
If you are using microsoft DNS, it will add the period for you, so you really dont need to worry, but the correct way is with the period.
Though you should really only need to add 'facilities' to the 'domain.com' zone.
0
 
LVL 1

Expert Comment

by:ElloDarkstar
ID: 24425943
It may depend on where you're adding a dns record, but most registrars I know of have ways to avoid issues (they request only the host name, then fill in the domain and extension for you).
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24426052
Thanks guys - out of interest - why do we add the period at the end, what does it perform?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 5

Expert Comment

by:Neranel
ID: 24426066
. is the root internet domain
so com is a subdomain of .
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24426093
sorry, i don't understand :(

I'm not a DNS expert by any means
0
 
LVL 5

Expert Comment

by:Neranel
ID: 24426510
a domain name like test.yahoo.com is actually 4 domains
first, remomber that i said all domains end with a period if they are fully qualified?
so now we have test.yahoo.com.
let me break it out
test (is a subdomain of) Yahoo (is a subdomain of) com (is a subdomain of) .
. being the root everything bucket domain of the entire internet.
0
 
LVL 5

Assisted Solution

by:Neranel
Neranel earned 200 total points
ID: 24426636
So to understand, when you dns server is questioned about who is test.yahoo.com it starts at the biggest.
.
it asks a root name server, who is test.yahoo.com.
the root server says, i dont know, but i know com's nameserver is x.x.x.x (now referred to as com NS)
so the DNS server asks com NS who is test.yahoo.com.
the com NS server says i dont know but i know yahoo's NS is y.y.y.y (now yahoo NS)
so the DNS Server asks yahoo NS who is test.yahoo.com.
and the yahoo NS says test.yahoo.com. is at ip addres z.z.z.z
 
Does that help?
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24426677
Yep, helps a lot..

Just one more question :)

What is the effect of not adding the .

0
 
LVL 5

Expert Comment

by:Neranel
ID: 24426717
in most cases the software will handle it for you.
0
 
LVL 3

Author Comment

by:kam_uk
ID: 24426761
sure, but what if it doesn't - i'm just curious that's all :)
0
 
LVL 5

Expert Comment

by:Neranel
ID: 24426918
Then you would need to.
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 300 total points
ID: 24429878

Everything in a zone file is relative to the origin (zone file name) unless explicitly terminated.

That is, if you fail to include the terminating period on a record in a DNS zone (and the software doesn't do it) the current zone name will be appended to the record.

For instance, if you have this, with an omitted period:

somezone.com.
   host1   IN CNAME   otherhost.otherdomain.com
   host2   IN CNAME   otherhostinthisdomain

You end up with this when you lookup host1:

otherhost.otherdomain.com.somezone.com.

And this when you lookup host2:

otherhostinthisdomain.somezone.com.

This occurs because of the short-hand conventions allowed when creating Zone Files for a DNS server. The same occurs with the "host1" entry. Because it doesn't have a terminating period it has the zone name appended and and becomes "host1.somezone.com.".

If all records were written in the longer form (with the correct termination this time) we would have:

somezone.com.
   host1.somezone.com.   IN CNAME   otherhost.otherdomain.com.
   host2.somezone.com.   IN CNAME   otherhostinthisdomain.somezone.com.

The zone file is less flexible, it's specific to "somezone.com", if it were all written in the short-hand form you could pick up the zone file, call it otherzone.com and it would happily answer requests. e.g.:

otherzone.com.
   host1   IN CNAME   otherhost.otherdomain.com.
   host2   IN CNAME   otherhostinthisdomain

Chris
0
 
LVL 5

Expert Comment

by:Neranel
ID: 24477574
Did we answer your Questions?, If not what DNS Platform are you using? If we did, can you please close the question.
 
Thank You,
Neranel
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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