issues with cluster dns settings

I’m having some issues connecting to a cluster using settings.

I have a cluster of 5. I want the client to attempt to connect to a new node if a node it connects to fails,

ConnectTo=tcp://foobaruser:[email protected]:1113;MaxReconnections=10; ReconnectionDelay=100; MaxRetries=11;ClusterDns=cluster-dns-entries-foobar.net; MaxDiscoverAttempts=10;

I get this error whenever a node fails (but the cluster remains healthy)

EventStore.ClientAPI.Exceptions.ConnectionClosedException

I tried using discover:// but I get similar failures.

I am using these docs settings what am I doing wrong.

https://eventstore.org/docs/dotnet-api/4.0.0/connecting-to-a-server/