LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2010, 04:58 AM   #1
vijay1585
LQ Newbie
 
Registered: Mar 2009
Location: Bangalore
Posts: 12
Blog Entries: 1

Rep: Reputation: 0
Lightbulb How to configure CNAME for Domain


Hi All

This is my example domain name


loc1.test.com --> 10.8.5.5
loc2.test.com --> 10.8.5.6
con1.test.com --> 10.8.5.7

mail.test.com --> con1.test.com

mk.test.com --> loc1.test.com,loc2.test.com

per1.test.com --> mk.test.com
per2.test.com --> mk.test.com
per3.test.com --> mk.test.com
per4.test.com --> mk.test.com


We have configured DNS Zone like this



$TTL 604800
test.com. IN SOA ns1.loc1.test.com. admid.test.com (
24082003 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

@ IN NS ns1.loc1.test.com
@ IN NS ns1.loc2.test.com
ns1.loc1.test.com IN A 10.8.5.5
ns1.loc2.test.com IN A 10.8.5.6
test.com. IN A 10.8.5.5
localhost IN A 127.0.0.1
loc1 IN A 10.8.5.5
loc2 IN A 10.8.5.6
con1 IN A 10.8.5.7
mail IN CNAME con1
mk IN CNAME loc1

How to configure CNAME for

mk.test.com --> loc2.test.com

and

per1.test.com --> mk.test.com
per2.test.com --> mk.test.com
per3.test.com --> mk.test.com
per4.test.com --> mk.test.com

Could any one help me in configuring CNAME for mk.test.com,per1.test.com,per2.test.com,per3.test.com and per4.test.com

Last edited by vijay1585; 08-26-2010 at 07:41 AM.
 
Old 08-26-2010, 05:43 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The same way as you have already done with the 2 CNAMEs

Code:
mk CNAME loc2
per1 CNAME mk
per2 CNAME mk
per3 CNAME mk
per4 CNAME mk
BTW It's good practice not to use a CNAME for a mail server (that is for the MX record of a zone). In your case you can use an A record pointing to the same IP as con1:
Code:
mail  A 10.8.5.7
 
1 members found this post helpful.
Old 08-26-2010, 06:59 AM   #3
vijay1585
LQ Newbie
 
Registered: Mar 2009
Location: Bangalore
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Hi Bathory,

Thanks for your reply

ok. we will not use cnme for MX record.
We have tried like this for CNAME

Quote:
mk IN CNAME loc1
mk CNAME loc2
We got error like this
named[20450]: dns_master_load: /etc/bind/test.com.zone:27: mk.test.com: multiple RRs of singleton type
 
Old 08-26-2010, 12:01 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You cannot have multiple CNAMEs for the same host
 
1 members found this post helpful.
Old 08-27-2010, 12:38 AM   #5
vijay1585
LQ Newbie
 
Registered: Mar 2009
Location: Bangalore
Posts: 12

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Ok, Thanks for your guide.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure my cname on the server? patcito Linux - Server 1 11-16-2009 10:27 PM
how to configure domain pawan_lal Linux - Server 1 10-29-2009 11:03 AM
How to configure so I don't need to type domain name or FQDN for same domain hosts? lumix Linux - Newbie 1 05-22-2008 07:59 PM
how to configure domain name bijaykumar Linux - Networking 2 12-04-2006 06:53 AM
Dns - Cname - Domain Masking dulaus Linux - Networking 2 06-06-2005 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration