The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving server - DNS and TTL

Discussion in 'Bind / DNS / Nameserver Issues' started by WorkinOnIt, Jun 15, 2017.

  1. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    94
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    In relation to this thread: Moving to a new server - using same nameservers and hostname

    Fairly straight-forward process for simply updating nameservers at registrar to point to new server, once all accounts have been transferred. However, what is the best way to avoid downtime for hosted accounts?

    Is it recommended to lower the TTL across all zone records on the outgoing / new server? If so, what's the best procedure / way to do this in bulk?

    Also - after updating nameservers at registrar to point to new server IP - is it recommended to redirect traffic from old server to new server IP address, in outgoing server zone records?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You could lower the TTL in the zone files of both servers if you prefer (assuming you are going to modify the source server zone files). Here's a thread where bulk changes to DNS zones is discussed:

    Bulk DNS Zone Update

    You can update the DNS zones on the source server to point to the destination server if you prefer, yes.

    Thank you.
     
  3. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    94
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Thank you for the reply Michael.

    What are the downsides of either of these two methods - and are there any "fish-hooks" to look out for! ?
     
  4. kssuhesh

    kssuhesh Member

    Joined:
    Jan 11, 2009
    Messages:
    10
    Likes Received:
    3
    Trophy Points:
    128
    Location:
    Kochi
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    - Reduce the TTL for all domains to a lower value ( say 30 minutes or lesser )
    - Wait for current TTL time ( if current TTL is 24 hours, wait for that much time to propagate the TTL change, update the new TTL in dns servers around the world)
    - Change the dns ( name servers to the new server)
    - Once all verified and confirm all are working, change the TTL to a higher value.

    Keeping TTL to a lower value will overload the server with dns queries. And if it is a higher value, then the changes in the dns records take that much time to propagate. Once you are all fine and there is no more dns changes, it is fine to update the TTL to a higher value.

    You can disable the services in the old server after changing the dns to the new server to avoid writing data into the old server even after the dns changes. Make sure to sync the last minute data before the dns change.
     
    cPanelMichael likes this.
Loading...

Share This Page