Is there a way to redirect an entire domain to another domain through one CNAME record?
For example [anyhost].domain1.com pointing to [anyhost].domain2.com where no matter what host name I enter in domain1.com it will point to the actual ip address of the SAME host name in domain2.com. If I ping www.domain1.com it will resolve to www.domain2.com's ip address. Or if I ping mail.domain1.com it will resolve to mail.domain2.com's ip address, and so on. I know I can enter a CNAME record for each host in domain1.com but that is tedious. Some of the other questions asked in this area shows answers where a specific ip address is used for a default for the domain and that is not what I am looking for as an answer.
Incidentally, I tried using CNAME *.domain1.com *.domain2.com and it didn't work.
blah.sub.example.com.
is not matched by*.example.com.
), you'd still run up against the inability to CNAME the apex record.*.example.com.
will matchblah.sub.example.com.
provided that neithersub.example.com.
norblah.sub.example.com.
exist)