You could run nslookup, note down all the resolving IPs and then telnet each of them, but this does both at the same time
./digport aws.com 443
Timeout is set to 2s seconds.
143.204.47.46 OK
143.204.47.69 OK
143.204.47.29 OK
143.204.47.40 OK
OK: 4
NOK: 0