DNS/BIND: set TTL for individual resource records

Posted January 4, 2004 by Quinn McHenry in BIND and DNS

Last Updated on

BIND resource records allow an explict TTL value that will override the zone file’s TTL for that specific resource record. One use for this is to prevent non-authoritative servers from caching these records, perhaps in prelude to changing a server’s IP address.

To set the TTL for an address record to 1 (the minimum recommended value), use:

chef.tech-recipes.com. 1 IN A

Other resource records can have the overriding TTL set in the same manner:

tech-recipes.com. 1 IN MX 10 mx1.tech-recipes.com.


About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply