Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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?

and

https://help.ubuntu.com/10.04/serverguide/dns-configuration.html

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 at 16:52
    
I believe so, is there already a line defining TTL ? If so, then yes. –  bodhi.zazen Feb 18 at 17:01

Your Answer

 
discard

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.