I have a script that uses TMDB API to gather collection information about movies for personal use. For the past week or two, I get this occasional error in curl: "curl: (6) Could not resolve host: api.themoviedb.org". When I change http://api.themoviedb.org/3 to http://54.225.210.229/3 in my script everything works fine. I am guessing that something is wrong with one of the addresses listed in DNS. Here is what I get when I do an nslookup:
$ nslookup api.themoviedb.org
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
api.themoviedb.org canonical name = tm-api-prod-789738748.us-east-1.elb.amazonaws.com.
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 50.16.214.131
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 50.16.219.183
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 54.225.210.229
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 54.225.223.192
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 54.243.221.106
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 54.243.227.76
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 184.73.169.1
Name: tm-api-prod-789738748.us-east-1.elb.amazonaws.com
Address: 23.21.44.221
I haven't tried all of the IPs listed as the first one I tried seems to work fine.
Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.
Doriți să evaluați sau să adăugați acest articol într-o listă?
Nu sunteți membru?
Răspuns de Travis Bell
pe data de 11 ianuarie 2014 la ora 10:00 AM
Hi hannaman72,
Yes, we use Amazon's ELB so everything is handled in their court. It's possible one of their servers is behaving poorly. Wouldn't be the first time 😉
I will pass this along to our ops team as I haven't heard any other reports about this yet.
Cheers.