Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My BIND9 is currently running fine but is there a way to set the expiration time/date of the cached names? If so, how?

Thanks in advance guys

share|improve this question

The expiration time is known as the "TTL" or time to live. You set this variable in you configuration file, typically /etc/bind/db.local or whatever config file you are using.

TTL is in seconds, so set it to a lower value, 60x60 = 3600 for an hour for examlpe

sudo -e /etc/bind/db.local

Set the ttl:

$TTL 3600

and restart bind.

For additional information see:

How do I do a complete BIND9 DNS Server Configuration with a hostname?


share|improve this answer
I'm just using bind as a caching server only. And the only config file I edited was /etc/bind/named.conf.options. The tutorial that I followed was this link. Can I just put the line $TTL 3600 in /etc/bind/named.conf.options? I really appreciate your help man – Abel Melquiades Callejo Feb 18 '14 at 16:52
I believe so, is there already a line defining TTL ? If so, then yes. – bodhi.zazen Feb 18 '14 at 17:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.