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

Write JSTest for bind_ip=localhost with /etc/host override

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None
    • ALL
    • Security 2019-05-06, Security 2019-05-20, Security 2019-06-03

    Description

      There is code in bind_ip configuration which depends on hostname resolution. However, we currently can't define different sets of ip->hostname mappings in tests.

      However, it appears there is a glibc environment variable called HOSTALIASES that allows a process to define a filepath to a hosts file, overriding the default of /etc/hosts.

      Attachments

        Activity

          People

            jonathan.reams@mongodb.com Jonathan Reams
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: