MQTT Connection issues on WP7702 [AWS]

Yeah gethostname failed and then after trying a few urls gethostbyname also failed to succeed once.

On pc I get

Hostname: legato-dev
Host IP: 127.0.1.1

and

Hostname: a1o5neajgmytt9-ats.iot.eu-central-1.amazonaws.com
Host IP: 18.194.135.217