LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2008, 11:11 AM   #1
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Rep: Reputation: 15
BIND 9 CNAME propagation issue


hi,

I have a problem with configuring CNAME record. CNAME is working fine but when i use it to configure CNAME for the zone name its not propagated to the secondary server. below is a sample of my configuration:

#mydomain.com zone file.
IN CNAME test.com

please note the configuration on the named.conf is correct on primary and secondary servers.

thx
rahmad
 
Old 08-13-2008, 05:52 PM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
You can't CNAME entire domains.

Use DNAME.

http://tools.ietf.org/html/rfc2672
 
Old 08-14-2008, 02:26 AM   #3
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
great! I haven't heard before about DNAME RR

but I would like to know if there is no impact on the other defined RRs, for example:
I have the following defined

IN DNAME test.cim
www IN A 1.2.3.4
ftp IN A a.b.c.d


www and ftp subdomains are remain intact after I add the DNAME record for the entire domain? please confirm?? because I have a live setup and I don't want to do anything wrong.
 
Old 08-14-2008, 04:09 AM   #4
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
After I read thoroughly about DNAME it seems that

www.mydomain.com will be redirected to www.test.com
ftp.mydomain.com will be redirected to ftp.test.com

but I dont need this, I only want to redirect my domain only like below

mydomain.com will be redirected to test.com ONLY

what do you think?? any thoughts??

CNAME works fine but the problem it is not propagated to my secondary server!!
 
Old 08-14-2008, 05:26 AM   #5
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
I found that in RFC 1034 that if you configure CNAME on the node no other data should be configured please see below:

http://www.ietf.org/rfc/rfc1034.txt

anyone has faced this before?? any ideas?? shall I remove the other RRs??
 
Old 08-15-2008, 02:35 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Trying to CNAME an entire domain is pretty ugly IMO. Better off to use HTTP redirects for the website, but whatever... meh.

If the RFC says only the CNAME should exist, than yes remove the other RRs.
 
  


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
Bind issue reaky Linux - Server 1 04-22-2008 02:30 AM
Bind CNAME Problem CleonII Linux - Software 1 11-01-2005 09:27 AM
Starting BIND issue DanielTan Linux - General 2 08-28-2005 10:20 AM
Bind Dns Issue?? treedstang Linux - Networking 2 07-04-2004 01:09 AM
DNS Propagation penguinz Linux - Networking 4 07-29-2003 03:06 PM

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

All times are GMT -5. The time now is 06:44 PM.

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