private void checkPortClash() {
    getEffectivePorts().stream()
        .filter(Objects::nonNull)
        .filter(port -> port > 0)
        .forEach(
            port -> {
              if (!allocatedPorts.add(port)) {
                throw new ParameterException(
                    commandLine,
                    "Port number '"
                        + port
                        + "' has been specified multiple times. Please review the supplied configuration.");
              }
            });
  }
Represents Enode DNS Configuration. Visible for testing.

@return instance of EnodeDnsConfiguration
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java