Difficult debugging problem

  1. Yes, ERL_MAX_PORTS is the same as +Q, use that
  2. The kernel params are probably different running in a container
  3. Here is an example of running a local caching DNS on a server: Running a local caching DNS for your app