This blog explains a DNS resolution error that can occur when testing an event-driven .NET application locally with Kafka running in a kind cluster. You’ll learn what causes the issue and how to apply a practical workaround to get your local development environment working quickly.
Pre-requisites:
A Kafka cluster running on a local Kind cluster.
Strimzi configured to manage the Kafka cluster.
A .NET API capable of creating or publishing to Kafka.
kubectl configured to access your Kind cluster.
PowerShell running on Windows.
The BootstrapServers value is intentionally set to, localhost:9092 in appsettings.json