Solved

Using CNAME or otherwise to change multiple DOMAIN Records

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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…

762 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

23 Experts available now in Live!

Get 1:1 Help Now