Skip to content

dnsdist: cache miss when all tcp only backends are down #15337

@pizchen

Description

@pizchen
  • Program: dnsdist
  • Issue type: Bug report

Short description

Environment

  • Operating system: Ubuntu 22.04.2 LTS with podman 3.4.4
  • Software version: dnsdist 2.0.0-alpha
  • Software source:
    Compiled by myself according to steps in repository builder directory

Steps to reproduce

  1. s = newServer({address="192.168.1.10:53",pool="test",name="test1",tcpOnly=true})
  2. getPool("test"):newPacketCache(100)
  3. setVerbose(true)
  4. Run a dig query from a client with udp request
  5. Ensure query returns success
  6. Run a few the same queries again, ensure cache hit (TTL shall be long enough)
  7. s:setDown()
  8. Perform the same query from client

Expected behaviour

Expect cache hit happens as a result of step 8

Actual behaviour

Currently cache miss is happening

Other information

After digging it seems this is related with cache key calculation strategy in dnsdist. More details can be found in #15335

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions