Node Red MQTT Nodes Not Resolving DNS CNAME Records?

I have a DNS CNAME record set to, the actual DNS name is When I try to use the CNAME record the Node Red MQTT nodes fail to connect.


Use of IP address works
Use of actual DNS name (FQDN) or short name works
Use of CNAME record fails, node on the left is using IP or DNS name (as the case may be) the node on the right is using CNAME record, i.e. DNS alias (using the term loosely).

Any one else see this behavior.

Oh, and use pinging of the CNAME works, resolving the CNAME works, I have absolutely no reason to believe DNS is not working correctly in this case.

# nslookup
Address: canonical name =

# nslookup name =

Reverse lookup should resolve to the actual device name record, not the CNAME record by the way.

I don't recall this being an issue in the past, but I have been away from NR for a while, could something in 3.0.x have changed to impact this? I know this did not happen in 1.x or 2.x. Might be a JavaScript thing?

Is node red running in Docker, or is it a native install? Are your test commands being run on the node red server machine?
Try the ping node and see if that sees it.

Not in docker. Ping node works against CNAME record. That would be expected behavior of course. I imported an older flow, and it is working, with the CNAME record. But the current newer flow still fails to connect. I am going to recreate the MQTT node and/or the flow see what happens. Feels like just have a bad node?

Try restarting node-red and see if then works.

Will do, after to it later today.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.