hi,
sorry to bother this list if this post is OT (if there is a more appropriate one please let me know :-)
the thing is we use the function:
hostent *myhostent=gethostbyname(p);
p being a normal pointer to a name like 'www.apple.com'
and this one fails lately on 10.4 intel mac-minis we experience this because we run tests at the startup of the program, one of them being the test if the machine's ip-address can be resolved by its own name
the funny thing is that when it fails, a normal 'dig' on the same name, resolves normally
usually we try to startup our app again and the second time all works ok, but we still have the problem reoccurring during nightly reboots
is there a known issue about 'gethostbyname'?
|