Jump to content

Recommended Posts

Posted

I have a shelly pro 2 that I am configuring at our company.

I am trying to use the DNS alias that I gave to my mqtt server in our local domain, but the logs say it could not be resolved.

shos_mqtt_conn.c:699 MQT0: Failed to resolve XXX-APP-MQTT01:1883

The main reason to do this is so I am able to easily migrate/update the MQTT server later on and just have to edit the DNS record.

The MQTT connection works when I use the server IP.

I have filled in the DNS ip in the networkconfiguration.

The DNS name also works when using MQTT explorer to connect to the broker.

Server ip connection: 192.168.1.189:1883

Server DNS connection: XXX-APP-MQTT01:1883

 

Has anyone tried this setup and succeeded?

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...