Score:-1

How to redirect forward from one subdomain to another subdomain with DNS?

cn flag

I have several subdomains under an existing main domain, e.g.:

eg.domain1.com
ie.domain1.com

The company is rebranding, and has setup a new main domain, under which all of these subdomains now need to exist under the same DNS IP Addresses, e.g.:

eg.domain2.com
ie.domain2.com

I need to have the old subdomains redirected/forwarded to the new subdomains, e.g:

sub.domain1.com -> sub.domain2.com
dom.domain1.com -> dom.domain2.com

Both domains are hosted on Network Solutions. I tried setting up web forwarding to do the redirect, but Network Solutions says that this is not possible with web forwarding, and offered no help in finding any other solutions.

I have also tried deleting the A records for the "old" domain and adding a CNAME record to alias the old subdomains to the new subdomain, but after waiting 18 hours or so, the change still hasn't taken effect.

Is there any other way to do this?

Score:1
cn flag

Not at all. Period.

DNS does not do browser redirects. What you do is have a website react to the old domains and issuing a HTTP Permanent Redirect (response 301).

A redirect like this CAN NOT BE DONE IN DNS.

Now, this may not be possible with Network Solutions hosting - but that is THEIR limitation, not a technical one.

djdomi avatar
za flag
Tomtom not directly but a came would also work, but rewrite would be the preferred option. And moreover dons updates can take days depending on what TTL you set. Normally first decrease it wait some days and then do your dns work
cn flag
So, I'll need to create a whole new server to host the old websites with different IP Addresses and redirect to the new ones from the webserver?
cn flag
For example. That is how I would do it.
cn flag
Appreciate the honest, solid answer @TomTom. Working on a solution now...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.