Using Perl to Change TTL Values

We’ll change the TTL from 14400 to 100 seconds for all domains

perl -pi -e ’s/14400/100/’ named.db

When changing the IP of a domain, end users will have the old IP of the domain cached at their ISP’s nameservers for a duration of the TTL (time to live). The default value is 14400 seconds (4 hours). This means, that when you change the IP of the sever, the worst case, is the end users will be using the wrong IP for 4 hours before the cache expires and the IP is recached with the correct value.

The simple way to minimize this propogation error is to lower the TTL.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.