How to point a domain name to server hostname

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
Hello,

I have 2 VPS servers, old and new, the hostname "server.domain.com" is still redirecting to the old server.
How do I redirect it to the new server ?

Thanks
 
Last edited by a moderator:

anitasharma

Registered
Mar 14, 2021
3
0
1
India
cPanel Access Level
Root Administrator
I also have the same issue. I am trying to move a website but is redirecting to the old server. I also had cleared the cache. Kindly reply to me that How do I redirect it to the new server?
 
Last edited by a moderator:

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
You have to change the A record the hostname is pointing to at the domain registrar.

The hostname should also be set on the VPS.

Hope that helps!
In Godaddy domain setup, I changed the A record to the server IP, and in the server hostname configuration it is set to server.domain.com, I waited 24h still redirecting to the old server.

I contacted Godaddy support again today, they told me to create another A record, with the name "server" and server IP as value.

You think this is the correct setup ? or I'm going to wait another day ? Thanks
 

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
275
95
28
Australia
cPanel Access Level
Root Administrator
Hi,

It usually doesn't take 24 hours for the DNS to propagate.

You can monitor propagation using whatsmydns.net.

Just type in the hostname and choose record type as A record.

It sounds like you have done it correctly but I'd need to be able to log into GoDaddy to verify.
 
  • Like
Reactions: psytanium

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
Hi,

It usually doesn't take 24 hours for the DNS to propagate.

You can monitor propagation using whatsmydns.net.

Just type in the hostname and choose record type as A record.

It sounds like you have done it correctly but I'd need to be able to log into GoDaddy to verify.
Thank you for providing the whatsmydns tool.. its useful
 
  • Like
Reactions: ZenHostingTravis

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,494
1,009
313
cPanel Access Level
Root Administrator
@anitasharma - I would recommend checking the DNS for the domain with a tool like intoDNS: checks DNS and mail servers health to confirm everything is set up properly there and DNS is routed to the correct system. If that is correct, there could be something in the site's code that is causing it to redirect to the old machine. If you are not able to track that down I would recommend submitting a support ticket to our team so we can take a look directly at the system for you.
 

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
Hello again, I need some more help regarding my server migration. I cannot send any email from any address of any user. The bounce back message is

Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  <--recepient email here-->
    host n1smtpout.europe.secureserver.net [188.121.43.235]
    SMTP error from remote mail server after end of data:
    552 5.2.0 Muz3lvlzBfjSW :DED: Access to this mail system has been blocked for <--My IP address here--> due to spam activity. Spam was seen coming from this IP, and possibly other scripts running on it. For help resolving the issue, see http://x.co/spamclean. Once the compromise has been cleaned, please contact customer support to remove the block.
Reporting-MTA: dns; <--Hostname here-->

Action: failed
Final-Recipient: rfc822;<--recepient email here-->
Status: 5.0.0
Remote-MTA: dns; n1smtpout.europe.secureserver.net
Diagnostic-Code: smtp; 552 5.2.0 Muz3lvlzBfjSW :DED: Access to this mail system has been blocked for <--My IP address here--> due to spam activity. Spam was seen coming from this IP, and possibly other scripts running on it. For help resolving the issue, see http://x.co/spamclean. Once the compromise has been cleaned, please contact customer support to remove the block.
I used MXToolbox and found this problem for all domain names : The remote server returned an error: (403) Forbidden. (http://abinasrholding.com)

Did I missed some server or domain configurations in the migration process ?
 

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
I don't think you missed anything with the migration, but the IP address was likely on a blacklist before you received the server. You can check the server's IP address here for that issue:

I checked my ip if on the blacklist, but it's clean. Apparently the relay n1smtpout.europe.secureserver.net blacklisted my server.

But why MXToolbox displayed this error : The remote server returned an error: (403) Forbidden. (http://abinasrholding.com) ??
 

psytanium

Well-Known Member
Jun 6, 2014
291
15
68
Lebanon
cPanel Access Level
Root Administrator
If the relay is on the blacklist you would still get blocked by any provider using that list. I also see a 403 in the browser when trying to visit that site, that that seems more like a direct web issue than an email issue.
I talked again with Godaddy support, they unblocked my server. Now the emails are flowing again. and the 403 error turned out something else, not related to email issue.

Thank you :)