[Bug 252855] nscd(8) does not cache DNS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 20 09:48:53 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252855

            Bug ID: 252855
           Summary: nscd(8) does not cache DNS
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: gcr at tharned.org

With this configuration:

$ fgrep hosts /etc/nsswitch.conf /etc/nscd.conf
/etc/nsswitch.conf:hosts: cache files dns
/etc/nscd.conf:enable-cache hosts yes
/etc/nscd.conf:positive-time-to-live hosts 60
/etc/nscd.conf:positive-policy hosts lfu
/etc/nscd.conf:negative-time-to-live hosts 60
/etc/nscd.conf:negative-policy hosts lfu
/etc/nscd.conf:negative-confidence-threshold hosts 3

nscd does not seem to cache DNS answers. Testing with getaddrinfo(1), every
query hits the wire, bound for the resolver defined in /etc/resolv.conf.

I can't tell if this is a bug, or if I've misconfigured something. (Yes, nscd
is enabled in rc.conf and running).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list