Skip to content

serve-expired-ttl & Redis #107

@mibere

Description

@mibere

Let's assume unbound.conf contains

server:
  prefetch: yes
  serve-expired: yes
  serve-expired-ttl: 7200
  ...

cachedb:
  backend: "redis"
  redis-server-host: 127.0.0.1
  redis-server-port: 6379

It doesn't contain 'serve-expired-ttl-reset'.

A client visits a domain (it's TTL is 3600) for the first time: Unbound can't find an answer to this query in its built-in in-memory cache and also not in the backend (Redis). So Unbound has to resolve the query as usual (iterative DNS resolution) and stores the answer in it's cache and in Redis.

5 hours later...the client visits and requests the above domain again.
What happens now? Especially in regard to the configured 'serve-expired-ttl' in combination with Redis.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions