curl - amazon ec2 instance unable to resolve host -


i have bunch of amazon ec2 instances. today, no reason can determine, 3 of them became unable resolve specific url. when try curl <url>, 3 instances "curl: (6) not resolve host", while other instances able resolve url , return correct data. it's specific url, - other urls work fine.

what have caused this? haven't changed on of instances, it's not did. how find out why happened?

this answer solve issue, did mine. must fix hosts file

127.0.0.1    localhost.localdomain localhost 127.0.1.1    my-machine 

or

127.0.0.1    localhost 127.0.1.1    my-machine 

where my-machine host name appears @ end of error message.
(e.g. mine domx-a2-33-d9-cb-f4-a8)

don't forget reboot instance management console after have changed hosts file. ;)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -