# CONNECT\_FAILED\_ERROR : All hosts failed DNS resolution

**URL:** <https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867>\
**Category:** General Discussions\
**Created:** [February 20, 2024, 9:25pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867 "2024-02-20T21:25:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbhargava18](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@tbhargava18](https://community.solace.com/u/tbhargava18)\
**Post date:** [February 20, 2024, 9:25pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/1 "2024-02-20T21:25:45Z")

</div>

I am trying to establish connection from my nodejs app(angular) to solace and I am getting CONNECT\_FAILED\_ERROR : All hosts failed DNS resolution (error subcode 145). I am not sure what I am missing. I am able to connect to solace from my backend service using the same host and port details. From UI its giving me error

---

<div class="post-metadata">

**Author:** ![uherbst](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/uherbst/32/291_2.png) [@uherbst](https://community.solace.com/u/uherbst)\
**Post date:** [February 21, 2024, 1:23pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/2 "2024-02-21T13:23:52Z")

</div>

Hi @tbhargava18 ,

would you show us your connect details ?

Thank you

Uli

---

<div class="post-metadata">

**Author:** ![tbhargava18](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@tbhargava18](https://community.solace.com/u/tbhargava18)\
**Post date:** [February 21, 2024, 9:19pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/3 "2024-02-21T21:19:01Z")

</div>

I cannot share the exact details, but url looks something like below:

url : tcps://abc.net:55443

vpnName :abc\_xyz

Username and password

---

<div class="post-metadata">

**Author:** ![uherbst](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/uherbst/32/291_2.png) [@uherbst](https://community.solace.com/u/uherbst)\
**Post date:** [February 22, 2024, 5:13am UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/4 "2024-02-22T05:13:26Z")

</div>

Can you resolve [abc.net](http://abc.net) from the system, where your application is running ?

(If it is a pod in k8s: try to resolve [abc.net](http://abc.net) from inside a shell in your pod).

---

<div class="post-metadata">

**Author:** ![tbhargava18](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@tbhargava18](https://community.solace.com/u/tbhargava18)\
**Post date:** [February 22, 2024, 12:20pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/5 "2024-02-22T12:20:22Z")

</div>

i am trying the connection from my local machine and I am able to resolve the host from my system.

Also, I use the same details to connect from a backend service and it works. From UI it doesnt. When I open the solace dashboard using the address [abc.net](http://abc.net) from my browser, I see the connection is not secure and ERR\_CERT\_AUTHORITY\_INVALID. Could that be causing issue ?

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [February 22, 2024, 6:05pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/6 "2024-02-22T18:05:45Z")

</div>

Hey @tbhargava18 could you provide a code snippet on how you are attempting to connect to the broker?

Side note, did you get the chance of checking the solace community angular github repo? Might be helpful to get ideas on how to use angular with solace

> **[GitHub - solacecommunity/angular-solace-message-client: Angular message client to communicate with a...](https://github.com/solacecommunity/angular-solace-message-client)**
>
> Angular message client to communicate with a Solace messaging broker for sending and receiving messages using the native SMF protocol over web socket.

---

<div class="post-metadata">

**Author:** ![tbhargava18](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@tbhargava18](https://community.solace.com/u/tbhargava18)\
**Post date:** [February 22, 2024, 7:46pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/7 "2024-02-22T19:46:04Z")

</div>

![img-8858.jpg](https://canada1.discourse-cdn.com/solace/original/2X/9/9978cf282dc2bb8171176dc4b0e805885fdfc144.jpeg)

Attached the code snippet

 ![img-8858.jpg](https://canada1.discourse-cdn.com/solace/original/2X/9/9978cf282dc2bb8171176dc4b0e805885fdfc144.jpeg)

---

<div class="post-metadata">

**Author:** ![tbhargava18](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@tbhargava18](https://community.solace.com/u/tbhargava18)\
**Post date:** [February 22, 2024, 9:38pm UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/8 "2024-02-22T21:38:00Z")

</div>

I tried changing the protocol to use **ws** ://abc.net:55443 and I see it trying to establish a connection but I now get “CONNECTION\_ERROR” subCode 44.

 ![img-8859.jpg](https://canada1.discourse-cdn.com/solace/original/2X/3/35d140e2d3c53720c5ca93c84a347053bfd9d3a5.jpeg)

 ![img-8859.jpg](https://canada1.discourse-cdn.com/solace/original/2X/3/35d140e2d3c53720c5ca93c84a347053bfd9d3a5.jpeg)

---

<div class="post-metadata">

**Author:** ![ric](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@ric](https://community.solace.com/u/ric)\
**Post date:** [March 25, 2024, 7:09am UTC](https://community.solace.com/t/connect-failed-error-all-hosts-failed-dns-resolution/1867/9 "2024-03-25T07:09:02Z")

</div>

Any solution for the above issue. I am getting the same issue
