Matt Cutts, head of Google Search, answers the question,

“I got a “Googlebot can’t access your site” message in Webmaster Tools from my host being down for a day. Does it affect my rankings when this happens?”