DNS redirect help

Associate
Joined
25 Feb 2016
Posts
219
I'm trying to redirect a .com to a .co.uk of the same name. I had it hosted and used index.html to do it. I want to do it via a DNS record so I don't need the hosting. I think I've got it working adding a www.yo.com cname (ttl 10800) www.yo.co.uk (it doesn't let me add the record without the www.), but it doesn't work if I don't type www. before the .com address. I just get "This site can’t be reached". I can get to the .co.uk site without the www in the address bar.

Can anyone help me fix this?
 
When creating a DNS record without the www. usually you'd use @ instead of leaving it blank. So the record would be against @.yo.com
Your provider might be stopping you doing that because it's not officially supported to have the root domain as a CNAME record. It doesn't usually break anything so some providers will let you do that.

Can you just set it up as an A record pointing to the same address as the other site then have the hosting listening for both domain names for that site?
 
Thanks.

It wont accept @ or a destination address in the A setting. The IP was the same for the .com and .co.uk anyway.

I had a look in cpanel and found redirects under Domains, but am not sure if this requires the domain to be hosted for it work, and it does seem to be working.

I'm thinking of moving my 2 sites to a wordpress hosting and if I do this I'm not sure how to do the .com redirect. I may ask tech support and see what they say.
 
I had a look in cpanel and found redirects under Domains, but am not sure if this requires the domain to be hosted for it work, and it does seem to be working.
Yup, creating an A record (and CNAME for WWW) pointing to your host and setting up a (cPanel) Domain Redirect to redirect it to your ".co.uk" is the typical cPanel method.

Although you can use an ALIAS record, similar to CNAME, to resolve one root domain to another but not all providers offer this option.
 
Back
Top Bottom