Migration and TTL value

postcd

Well-Known Member
Oct 22, 2010
720
20
68
Hello, im before migration of hosting accounts from one cpanel server to another.

My aim is to lower the TTL value of the nameservers so the ISP of website visitors dont keep old server IP value too long and its quickly rechecked and get new IP value from nameservers.

My question is this:

Do i need to change DNS zone file on my old hosting server and set lower TTL value? Or i need to change TTL value on my domain registar where i have nameservers registered?

Which one has priority and which one is taken into account by internet service provider?

In my case i cant change TTL on my domain registar side (Namecheap appears not to allow change and it is 48 hours TTL)

So would be good if DNS zone files TTL has priority? thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Do i need to change DNS zone file on my old hosting server and set lower TTL value? Or i need to change TTL value on my domain registar where i have nameservers registered?
Yes, you change the value in the DNS zone itself on the cPanel server.

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
720
20
68
Thanks for clear reply, ok i change value, but can you explain why is not needed to change TTL on domain registar side? And please answer my question "Which one has priority and which one is taken into account by internet service provider?"

(im speaking about ttl on registar side and hosting server side)

thx
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Your cPanel server has priority because you are using name servers with IP addresses that are added to the cPanel server. The DNS Zone on the cPanel server is what DNS servers will lookup.

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
720
20
68
thx, is there any way i can veriffy that low TTL value in DNS zone file on my cpanel server will really make ISP to get new IP data quicker?
Any online tool any linux command?

This tool checks resolved IP for a domain name: http://cachecheck.opendns.com/

Here is the zone file:
5ftLo.jpg

So i need to change all 86400 values please? I dont see TTL A value, only NS and SOA...

Linux command to see TTL values:
Code:
dig @ns3.nameserver.com -t A www.domainpointedtothatnameserver.com
It returns 86400 so appears this value is taken by ISP

On above attached image there is 4 times 86400 value, do i need to change all these for lowering cache time os ISP? Named, Bind restart is needed?
 
Last edited:

postcd

Well-Known Member
Oct 22, 2010
720
20
68
Thx Michael, but im not having SSH access and my provider told he wont do it, thats why im asking in my previous post..

On above attached image there is 4 times 86400 value, do i need to change all these for lowering cache time os ISP? Named, Bind restart is needed?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Yes, simply use the "Edit DNS Zone" option in WHM to change the TTL values in each zone. Replace all the entries with the default "86400" value to the new value that you decide upon. Restarting the named service is not required because WHM reloads Bind for you.

Thank you.