Skip to content

Puppet 8.10.0 agent seems to cache/only load on start the local DNS resolver #9568

@ichdasich

Description

@ichdasich

Describe the Bug

I am currently migrating to a new recursive DNS setup. Monitoring hosts that still hit the old IPs, I noticed that all hosts running puppet still seem to be querying the old NS for the puppet master's IP exclusively. All other recursive traffic is on the new IP.

Hosts include hosts with and without systemd-resolved, as well as linux and openbsd hosts, which makes me believe that this is puppet specific behavior.

Expected Behavior

As soon as the system's DNS server is changed (/etc/resolv.conf, systemd-resolved,...), puppet should use the new NS.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Provision a new host (expl. Debian 13)
  2. Onboard the host to puppet
  3. Change the recursive DNS server (resolv.conf, ... )
  4. Still observe queries to the old NS' IP
  5. Restart the puppet agent process
  6. Observe that the queries disappear

Environment

  • Version 8.10.0
  • Platform Debian 13, OpenBSD 7.8

Additional Context

More of an annoyance; Also didn't check what happens if the new IP becomes unavailable, i.e., if that leads to a flush.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions