3

Although the searched FQDN appears in etc\hosts file.

Any idea? Thanks a lot!

jpalecek
  • 47,058
  • 7
  • 102
  • 144
  • Are you really on windows? Because that haven't the hosts file in etc/hosts, but somewhere in WINDOWS, or system32... – jpalecek Jun 15 '09 at 11:10
  • %WINDIR%\system32\drivers\etc\hosts, if you're looking for it. – MSalters Jun 15 '09 at 11:13
  • 1
    Actual arguments to the call, and the relevant line(s) from etc\hosts would be useful. – MSalters Jun 15 '09 at 11:17
  • The line is the hosts file (yes, %WINDIR%\system32\drivers\etc\hosts) is OK. Another reason? –  Jun 15 '09 at 11:35
  • This could also be an indication of a non-programming error, e.g. as described in http://superuser.com/questions/86751/ . Does ping work for the same (_literally_ the same) address? – MSalters May 12 '10 at 11:22

1 Answers1

1

Since I don't have code, here's a guess:

getaddrinfo("http://www.example.com");

Doesn't work; getaddrinfo takes a hostname not a URL.

MSalters
  • 173,980
  • 10
  • 155
  • 350