Re: OT? gethostbyname failure
Re: OT? gethostbyname failure
- Subject: Re: OT? gethostbyname failure
- From: Louis Demers <email@hidden>
- Date: Sun, 17 Feb 2008 10:03:30 -0500
On 16-Feb-08, at 16:22 , email@hidden wrote:
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,
below you talk about nightly reboots. Do you mean when your programs
run when the mac starts up ? If so it could be that the mac hasn't
yet received all the configuration info about which name server to use
and it queries for the hostname too fast. When you later use dig (in
terminal) or restart your app, it's all fine because the network
configuration is fully initialized.
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
Louis Demers eng.
www.obzerv.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden