it is important to change the TTL setting of the domain to a short time (60s) before migrating to new server.
and wait for the dns record to propagate before changing the dns records.