View previous topic :: View next topic |
Author |
Message |
guigouz n00b

Joined: 22 Apr 2004 Posts: 33
|
Posted: Mon Apr 11, 2005 8:18 pm Post subject: DNS: CNAME and other data |
|
|
I'm trying to setup my servers in a way I can change them if some of them fail
The idea is to have all the domains zone files on the DNS as CNAMEs, and to have a master domain with really low TTLs so I can change its IP address if one of the server fails
for the master domain, I have
Quote: | masterdomain.com. IN SOA dns.masterdomain.com. (
root.masterdomain.com.
2004061119 ; serial
4H ; refresh
2H ; retry
2W ; expire
15M ) ; minimum
IN NS ns.masterdomain.com.
IN MX 10 mail.masterdomain.com.
IN A 1.2.3.4
www IN A 1.2.3.4
mail IN A 1.2.3.4
ns IN A 1.2.3.4
server IN A 1.2.3.4
|
Now for the other servers, I have
Quote: | otherdomain.com. IN SOA dns.masterdomain.com. (
root.masterdomain.com.
2004061119 ; serial
4H ; refresh
2H ; retry
2W ; expire
15M ) ; minimum
IN NS ns.masterdomain.com.
IN MX 10 mail.masterdomain.com.
www IN CNAME server.masterdomain.com.
mail IN CNAME server.masterdomain.com.
|
Ok
If I add something like "IN CNAME server.masterdomain.com." to the second file (other servers) I get and error "CNAME and other data"... RFC1034 Section 3.6.2 says "If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different.", but it fails even if there's only a CNAME on the zone file (besides the SOA).
If I don't add "IN CNAME..." all other subdomains work (www, mail) but "otherdomain.com" can't be resolved.
Any tips ? |
|
Back to top |
|
 |
jecepede Apprentice


Joined: 19 Nov 2002 Posts: 239
|
Posted: Wed Apr 13, 2005 7:52 pm Post subject: CNAME |
|
|
Ola !
I'm not a real expert in DNS and zone-filels but can I suggest you don't use a CNAME in a round robin config.
As the RFC already told you, you cant combine CNAMES with other zone-records
By the way, what do you mean with Quote: | if one of the server fails |
1: DNS fails ?
You could use a service like http://freedns.afraid.org to set up your free account (in slave mode naturally)
2: web/mail server fails ?
Make a round robin config like :
www IN A 1.2.3.4
www IN A 1.2.3.5
Note : the last solution distributes the "load" between the two machines, you might not want that... so solution 2.5 :
2.5 set you refresh time to 1 hour....
change de A-records....
and use rncd ehhr rcnd ? yadiyadia zone.file.co command to kick the new config into the world..
Greets
Jessy _________________ I've got that retro-feeling :
http://instagram.com/jecepede
Check out my YouTube channel
https://www.youtube.com/jecepede |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|