HomeUNIX softwareBIND and DNSDNS/BIND: set TTL for individual resource records

DNS/BIND: set TTL for individual resource records

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 192.168.5.100

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

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

Quinn McHenry
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.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!