Solved

Using CNAME or otherwise to change multiple DOMAIN Records

Posted on 2007-04-05
4
209 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
  • 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 70

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 70

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

778 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