# Error trying to connect to confluent cloud topic

**URL:** <https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471>\
**Category:** Confluent Cloud\
**Created:** [5 July 2022 21:31 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471 "2022-07-05T21:31:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.mullins.pluto](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@scott.mullins.pluto](https://forum.confluent.io/u/scott.mullins.pluto)\
**Post date:** [5 July 2022 21:31 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/1 "2022-07-05T21:31:10Z")

</div>

In trying to connect to a kafka topic in confluent cloud using a Golang client I receive the following error:

GroupCoordinator: b0-pkc-4nym6.us-east-1.aws.confluent.cloud:9092: Failed to resolve ‘b0-pkc-4nym6.us-east-1.aws.confluent.cloud:9092’: nodename nor servname provided, or not known (after 1ms in state CONNECT)

A DNS lookup on both the bootstrap server and the server in the error are both successful so the machine I am running this from finds them.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [6 July 2022 07:27 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/2 "2022-07-06T07:27:06Z")

</div>

hey @scott.mullins.pluto

did you try to telnet the broker and check if a connection is successful?

did you try the go client develeoped by confluent?  
[https://docs.confluent.io/kafka-clients/go/current/overview.html](https://docs.confluent.io/kafka-clients/go/current/overview.html)

best,  
michael

---

<div class="post-metadata">

**Author:** ![scott.mullins.pluto](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@scott.mullins.pluto](https://forum.confluent.io/u/scott.mullins.pluto)\
**Post date:** [6 July 2022 22:20 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/3 "2022-07-06T22:20:59Z")

</div>

I am already using the confluent kafka client.

I haven’t tried telnet but I don’t know what that would show me that “dig” doesn’t.

❯ dig b0-pkc-4nym6.us-east-1.aws.confluent.cloud

; \<\<\>\> DiG 9.10.6 \<\<\>\> b0-pkc-4nym6.us-east-1.aws.confluent.cloud

;; global options: +cmd

;; Got answer:

;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 62366

;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:

; EDNS: version: 0, flags:; udp: 1232

;; QUESTION SECTION:

;b0-pkc-4nym6.us-east-1.aws.confluent.cloud. IN A

;; ANSWER SECTION:

b0-pkc-4nym6.us-east-1.aws.confluent.cloud. 9 IN A 54.205.44.89

b0-pkc-4nym6.us-east-1.aws.confluent.cloud. 9 IN A 3.232.233.245

b0-pkc-4nym6.us-east-1.aws.confluent.cloud. 9 IN A 52.3.21.250

;; Query time: 34 msec

;; SERVER: 10.253.0.1#53(10.253.0.1)

;; WHEN: Tue Jul 05 14:21:32 PDT 2022

;; MSG SIZE rcvd: 245

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [7 July 2022 05:41 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/4 "2022-07-07T05:41:04Z")

</div>

ok understand  
telnet would should if a connection to the port is successful.  
dig will show the dns resolution.

best,  
michael

---

<div class="post-metadata">

**Author:** ![scott.mullins.pluto](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@scott.mullins.pluto](https://forum.confluent.io/u/scott.mullins.pluto)\
**Post date:** [7 July 2022 15:25 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/5 "2022-07-07T15:25:29Z")

</div>

From the same machine the confluent CLI works perfectly well to consume and produce messages from this same cluster, so it’s not an obvious networking issue.

---

<div class="post-metadata">

**Author:** ![mmuehlbeyer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mmuehlbeyer/32/1088_2.png) [@mmuehlbeyer](https://forum.confluent.io/u/mmuehlbeyer)\
**Post date:** [8 July 2022 05:31 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/6 "2022-07-08T05:31:03Z")

</div>

ok I see  
how does you configuration look like?

best,  
michael

---

<div class="post-metadata">

**Author:** ![scott.mullins.pluto](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@scott.mullins.pluto](https://forum.confluent.io/u/scott.mullins.pluto)\
**Post date:** [11 July 2022 17:24 UTC](https://forum.confluent.io/t/error-trying-to-connect-to-confluent-cloud-topic/5471/7 "2022-07-11T17:24:09Z")

</div>

Config below. I have since verified that the same setup, network, configuration, etc. works perfectly well with a different cluster.

bootstrap.servers=.confluent.cloud:9092  
security.protocol=SASL\_SSL  
sasl.mechanisms=PLAIN  
sasl.username=\< CLUSTER API KEY \>  
sasl.password=\< CLUSTER API SECRET \>
