code: public static InetAddress getInetAddress(Config config, String path) {
          try {
              return InetAddress.getByName(config.getString(path));
          } catch (UnknownHostException e) {
              throw badValue(e, config, path);
          }
      }
docs: Get an IP address. The configuration value can either be a hostname or
  a literal IP address.
  
  @param config a configuration object
  @param path the path expression
  @return an IP address
  @throws ConfigException.Missing if the value is absent or null
  @throws ConfigException.WrongType if the value is not convertible to
  a string
  @throws ConfigException.BadValue if the value cannot be translated into
  an IP address