5 minutes ago, my server was unable to find route to api.twitter.com. mtr
showed a blank screen. /etc/init.d/networking restart
fixed the problem but I would like to understand what went wrong so that I can troubleshoot it more precisely next time. Any ideas ?
UPDATE : here is what the host command shows
:
host api.twitter.com
api.twitter.com has address 199.16.156.199
api.twitter.com has address 199.16.156.40
api.twitter.com has address 199.16.156.104
after flushing the cache, one route changes:
host api.twitter.com
api.twitter.com has address 199.16.156.40
api.twitter.com has address 199.16.156.104
api.twitter.com has address 199.16.156.231
As you can see api.twitter.com has a multiple A records
So it is possible that one node of the "cluster" has failed and all packets tried to reach failed node. As you can see each route has TTL
I think you can use the following command to clean your cache
You can get more info at http://vincent.bernat.im/en/blog/2011-ipv4-route-cache-linux.html