I’m looking to redirect my domains DNS to a new host, can anyone help?
I have a domain name and an email account with 123-reg.co.uk but I want to redirect the domain to another host. I would just change the nameservers but then the email doesn’t work. I’ve tried fiddling with the CNAME and A records etc but I’ve no idea what I’m doing, can anyone please help?
You can do this two ways. Add the DNS zone on the receiving company for DNS and make sure the MX points to the correct place or point the A record where the current domain is hosted (123-reg.co.uk) to the new host, thus still allowing 123-reg.co.uk to control DNS.
-Ryan M., Server Engineer @ http://www.hosting.com


You can do this two ways. Add the DNS zone on the receiving company for DNS and make sure the MX points to the correct place or point the A record where the current domain is hosted (123-reg.co.uk) to the new host, thus still allowing 123-reg.co.uk to control DNS.
-Ryan M., Server Engineer @ http://www.hosting.com
References :
if you have a DNS change you need to submit the changes from the new server to take ownership of the record (SOA) 1st.
Put a redirect in your index.php or index.html
<?php
if (!empty($_SERVER['HTTPS']) && (‘on’ == $_SERVER['HTTPS'])) {
$uri = ‘https://’;
} else {
$uri = ‘http://’;
}
$uri .= $_SERVER['HTTP_HOST'];
header(‘Location: ‘.$uri.’http://newsite.TLD’);
exit;
?>
or
HTML/JavaScript
<HTML>
<HEAD><TITLE>Web Site Redirect </TITLE>
<BODY bgcolor="#ffffff">
<SCRIPT LANGUAGE="JavaScript">
<!–
function redirect()
{
window.location = "https://newsite.tld"
}
setTimeout("redirect();", 1000)
//–>
</SCRIPT>
<H2>The website for MY Site is Redirecting to a Secure URL </h2>
<h3>
New URL : <a href="https://securemysite.TLD ">
https://securemysite.TLD</A>
</h3>
<P>You will be tranferred there automatically. Please bookmark the URL of our new webaddress and delete the bookmark of
our old web address.
</BODY>
</HTML>
References :