Search code examples
apache-kafkakafka-consumer-apispring-kafkakafka-producer-api

What is the exact difference between “ use_all_dns_ips” and "resolve_canonical_bootstrap_servers_only” in client.dns.lookup options?


In kafka-client 2.1.0, client.dns.lookup is available. Below is a description of each option.

  1. use_all_dns_ips

    when the lookup returns multiple IP addresses for a hostname, they will all be attempted to connect to before failing the connection

  2. resolve_canonical_bootstrap_servers_only

    each entry will be resolved and expanded into a list of canonical names

Aren't they both using dns? What are the differences between use_all_dns_ips and resolve_canonical_bootstrap_servers_only ?


Solution

  • While both these options are about DNS, they are different: