Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12741

mongod on glibc should regularly call res_init() to reparse DNS nameservers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Change /etc/resolv.conf to new nameserver.
      Shutdown old nameserver.
      Wait for getaddrinfo() resolution failures.

      Show
      Change /etc/resolv.conf to new nameserver. Shutdown old nameserver. Wait for getaddrinfo() resolution failures.

      Description

      Updating /etc/resolv.conf will have no effect on running mongod instances until they are restarted due to nameserver caching in glibc.

      According to Ulrich, calling res_init() will cause this to happen.

      http://sourceware.org/bugzilla/show_bug.cgi?id=3675

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              christian.hergert@10gen.com Christian Hergert
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: