void refreshENRRecords(final Long taskId) {
    LOG.debug("Refreshing DNS records");
    final long startTime = System.nanoTime();
    final List<EthereumNodeRecord> ethereumNodeRecords = dnsResolver.collectAll();
    final long endTime = System.nanoTime();
    LOG.debug("Time taken to DNSResolver.collectAll: {} ms", (endTime - startTime) / 1_000_000);
    listener.ifPresent(it -> it.newRecords(dnsResolver.sequence(), ethereumNodeRecords));
  }
Refresh enr records by calling dnsResolver and updating the listeners.

@param taskId the task id of the periodic task
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSDaemon.java