in AWS service connect. it will try to resolve first IPv6 and it failed then it will go IPv4. In fail case it will hold 10s. to resolve check security group and your allow IPv6 port