aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
74 stars 71 forks source link

Could not resolve DNS hostname of proxy host #23

Closed brilliantwf closed 4 years ago

brilliantwf commented 4 years ago

After runninglocalproxy -r "cn-north-1" -s "5555" -t "Accesscode"on my Mac, I get the following error: Found access token supplied via CLI arg. Consider using environment variable AWSIOT_TUNNEL_ACCESS_TOKEN instead [2020-04-25T22:02:07.032234]{67014}[info] Starting proxy in source mode [2020-04-25T22:02:07.035178]{67014}[info] Attempting to establish web socket connection with endpoint wss://data.tunneling.iot.cn-north-1.amazonaws.com:443 [2020-04-25T22:02:07.038003]{67014}[error] Could not resolve DNS hostname of proxy host: data.tunneling.iot.cn-north-1.amazonaws.com - Host not found (authoritative) But the same command can successfully establish link in Ubuntu. I found a possible reason is that mac os does not support the syntax like hostname: port ,it Will cause an error Could not resolve DNS hostname

HarshGandhi-AWS commented 4 years ago

Hello @brilliantwf ,

Thank you for your feedback. It seems like you are using the code from an old commit on your Mac. Will you please verify if you are using the latest code or not?

Thank you, Harsh Gandhi

HarshGandhi-AWS commented 4 years ago

Hello @brilliantwf , we haven’t heard back from you in quite some time, we will leave this issue open for another 7 days, if we haven’t heard back from you by then, we will close this issue. After that time, please feel free to open a new issue if you still face difficulties.