Hi all,
We have managed to put a temporary hack in to clear the errors this morning by forcing api.twitter.com to known working IPs. It seems one of the servers being returned in their DNS resolution might be having issues.
To resolve you can try adding this into your /etc/hosts on any boxes making API calls:
199.16.156.231 api.twitter.com
Some libs cache DNS results so you may need to restart your application for the change to take effect.
This is of course temporary and will stop working the day 199.16.156.231 is no longer a Twitter API server, so will need some alerting on this for production services and worth adding multiple IP’s (use “dig +short api.twitter.com A” to list possible options to test with) whilst Twitter resolve the issue.
Don’t forget to set yourself a reminder to remove it in the future!
Jamie