Overriding TTL per resource-record on slave

blrmaani blrmaani at gmail.com
Tue Jul 26 07:27:41 UTC 2016


Sorry for not being clear. Our DNS server scrapes entries from a database and creates a DNS zone entries. Our DNS server is configured as a DNS master i.e type=master in BIND config for this zone.

The database is the source of truth for DNS hosts which are in multiple locations and we do not want to modify per resource-record TTL value in the database since it impacts all locations.

Our DNS server needs to customized such that TTL values for few 'special' records needs to be customized.

How do I modify per resource-record TTL on our DNS master?


On Tuesday, July 26, 2016 at 11:14:19 AM UTC+5:30, blrmaani wrote:
> We slave a zone and would like to override default TTL for bunch of resource-records. What is the right way to do it?
> 
> For example, here are few records for which we have to customize TTLs:
> 
> host1.zone1.com.:
>   default_ttl = 300 
>   preferred_ttl = 3600
> 
> host2.zone1.com: 
>   default_ttl = 300
>   preferred_ttl = 86400
> 
> Since we want these preferred TTL values only for few regions, we don't want to make changes on our hidden master and prefer to do it on the slave sitting in a specific region.
> 
> My Idea is to run a dynamic update (nsupdate) wrapper script to update TTL entries for desired resource-records on our slave. Is there a better way to achieve this?
> 
> thanks
> Blr



More information about the bind-users mailing list