title: gethostbyname once failed never success
body: <p>When I call gethostbyname in a NDK application without networking, then I turn on wifi switch, and call gethostbyname with the same host again, and it still failed, h_errno = 2.</p>
  
  <p>Why is this and how to avoid it.</p>