Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
In DNS can an IN NS point to a CNAME?

I am in the process of migrating hosting providers. Currently I have significant number of domains pointed at my current NS servers. My new provider has their own NS server that I will need to update all my hosted domains to in order for them to point to the new server.

As updating a few hundred domains with new NS records is going to take a LONG time I was wondering if it was possible to point my current NS records at the new hosts NS's using CNAMES?

i.e

ns1.myns.com => CNAME => ns1.newns.com
ns2.myns.com => CNAME => ns2.newns.com

All domains that are currently pointing to ns1.myns.com would then actually be pointing to ns1.newns.com where the DNS records have been mirrored and are correctly pointing to the new servers IP.

Does that make sense? Will this work?

share|improve this question

migrated from stackoverflow.com Oct 24 '11 at 7:48

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Michael Hampton, John Gardeniers, Ladadadada, voretaq7 Oct 26 '12 at 16:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Don't do it. This causes "lame servers". –  Marc B Oct 24 '11 at 3:38
    
Is this a big problem if it is only a temporary thing? The main reason for wanting to do this is due to the time it will take up update all domains to the new nameservers, which exceeds the amount of time I have to complete the hosting migration. –  Luke McCallum Oct 24 '11 at 3:42
1  
Can you do it? Well you can use cnames to point anything to just about anything. Should you do it? That rather depends on how you feel about things working correctly. –  RobM Oct 24 '11 at 8:01

2 Answers 2

up vote 4 down vote accepted

Don't do it. If you have access to the DNS records of nsX.myns.com then change the A record to point to the A record of nsX.newns.com. This is how it is designed to work.

share|improve this answer

It would be nice if its possible, but it works only on some clients, and others it fails.

The thing is that the name server on the right side of the cname will think that its name is being used (delegated) since the delegated name servers use cname that point to their name servers. If you use an IP (or a sub domain/child name server), their name servers will check for their names and not see any delegation to their name servers (even though their ips are being used) and may take the domain offline. (seen that problem)

Its sad cnames are not supported 100% in ns records, but some dns clients expect an immediate resolvable answer and fail on cnames (very bad programming).

Sometimes I think those BIND programmers should be shot, as its really easy to break BIND servers and spoof results, and on top of that they don't program things that seem logical.

share|improve this answer
3  
You've posted 2 "answers" so far and both are nothing more than a rant about BIND programers. If you think you can do better then please feel free to do so but your completely unfounded and massively over the top comments are unwelcome. –  John Gardeniers Oct 26 '12 at 7:37
    
Was giving an answer as I have already tried it out. –  Sheldon Irving Oct 20 '13 at 5:13
    
And yes that was a strike at bind programmers. I have the right to criticize things as I have been programming since 1994. –  Sheldon Irving Oct 20 '13 at 5:14
    
Some clients support it, most don't. All it takes is for 1 dns server in the chain to mess up and your domain name is down. –  Sheldon Irving Oct 20 '13 at 5:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.