code: public static void loadStaticResolutions(Configuration conf) {
      String hostToResolved[] = conf.getStrings("hadoop.net.static.resolutions");
      if (hostToResolved != null) {
        for (String str : hostToResolved) {
          String name = str.substring(0, str.indexOf('='));
          String resolvedName = str.substring(str.indexOf('=') + 1);
          NetUtils.addStaticResolution(name, resolvedName);
        }
      }
    }
docs: Load the static resolutions from configuration. This is required for junit
  to work on testcases that simulate multiple nodes on a single physical
  node.
  @param conf The configuration.