Solved

Using CNAME or otherwise to change multiple DOMAIN Records

Posted on 2007-04-05
4
220 Views
Last Modified: 2010-04-10
I am using NAMED andI have several domain names that all need to point to the same IP.

Lets say

www.hello.com
www.goodbye.com
www.welcome.com

Should I want to change that IP among all the domains, I am looking for the most efficient way without editing every domain record.

should I assign an A record to one domain lets say:

hello.com  IN  A  10.0.0.1

and then CNAME the rest to it

welcome.com IN CNAME hello.com

I know this will cause dual lookups I believe. Is there a more efficient way?

0
Comment
Question by:lexshine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:lexshine
ID: 18862795
maybe the question doesn't make sense. Let me get to my desired result. if I am running NAMED and have over 150 domain records, is there any way possible to change the IP in 1 record and have the rest follow suit.

I would imagine some method exists for failover setups, etc.

0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 18863132

welcome.com IN CNAME hello.com

Will not be possible, you cannot use a CNAME for a record where other resource records exist. Welcome.com should already have NS and SOA records associated with it, your zone won't load if you add a CNAME in as well.

You can configure CNAME records for www. within a domain though.

HTH

Chris
0
 

Author Comment

by:lexshine
ID: 18867301
Then is there a recommendation for repointing a large amount of domain records

lets say you have 10 domain record files and they all point to 10.0.0.1 as a virtual host.

Is there no way to change one record, and have all the other records also change to that IP? it seems rather limiting, but I cannot find any method of doing this.

Do I have to write a script to regenerate all the domain records with a different IP? it should seem that there would be a way to alias the IN A ip in every record so that you can easily repoint it should u need to.



0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 18868078

I'm afraid scripting it is the only solution I can offer. Unless you preserve the IP Address when eveything is changed.

If it were anything but the record for the Domain Name itself you'd be fine. It's just a restriction with CNAME records that prevents it being used there.

Chris
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

749 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