DNS/BIND: set TTL for individual resource records

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: BIND and DNS  

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.

 

2 Comments -


No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment -