Solved

Using CNAME or otherwise to change multiple DOMAIN Records

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now