What is TTL in DNS and how to use

Aveam database server si website pe aceiasi masina, a trebuit sa creez o noua masina pentru website si sa las database pe cea veche, ideea e ca domeniul trebuia sa il mapez la IP-ul masini noi si website-ul sa fie down cat mai putin. DNS servers sunt organizate ca top level DNS servers and caching DNS servers, cand facem un DNS lookup de obicei interogam caching DNS servers, TTL in milisecunde ne da timpul de propagare DNS, inainte sa schimb maparea domeniului la noul IP am scazut TTL la 5 min, am asteptat sa se propage DNS cu noul TTL, dupa care am mapat domeniu la noul IP, si am asteptat inca 5 min si DNS-ul sa propagat cu noul IP, timpul normal de propagare DNS este de 30 min dupa ce s-a propagat DNS cu noul IP am setat TTL la 30 min.

TTL value tells local resolving name servers how long a record should be stored locally before a new copy of the record must be retrieved from DNS. The record storage is known as the DNS cache, and the act of storing records is called caching.

DNS Knowledge

2 Likes