Probably caused by your previous issue, if not already solved, with IP Tables.
https://sprykercommunity.slack.com/archives/CMYFJCG2E/p1691570629695679
IP Tables define which outgoing and incoming connections are allowed on which port and protocol. So if IP Tables aren't set up correctly connection errors, like the timeout are a consequence.
But also the DNS you query seem odd, as 172.27.80.1 is a class B IP address, meaning it's for private usage. This could be fine, for example if your company has an internal DNS, but at least is something you could look into.