Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5700

Call res_init() after a failure of getaddrinfo()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • None
    • None
    • manual
    • Docs Sprint 2016 (03.28-04.15), Docs Current Sprint
    • true

    Description

      We should call res_init() on Linux systems after failure in getaddrinfo().

      Handle cases when the DNS resolver has been changed by resetting the cache.

      Should ideally be fixed in glibc but do not think they will as outlined http://sourceware.org/bugzilla/show_bug.cgi?id=3675

      ====== DOCS CHANGE =======

      This is a minor issue effecting DNS on RedHat derivative linux distributions due to an implementation choice in GLIBC in those distributions. The issue is, if you make changes to the DNS resolver underneath MongoDB you will need to restart your database under any RHEL based Linux.

      This does not effect Debian derivatives as they use a patched version of GLIBC.

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              david.hows David Hows
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 36 weeks, 4 days ago