Solved

Using CNAME or otherwise to change multiple DOMAIN Records

Posted on 2007-04-05
4
232 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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month5 days, 17 hours left to enroll

627 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