Alaska Software Inc. - SocketGetHostByName
Username: Password:
AuthorTopic: SocketGetHostByName
Stephan KoenigSocketGetHostByName
on Sun, 31 Mar 2002 22:04:06 -0500
I have to verify dns entrys (www.) I use the above function for this. When I
use it a single time, everything is okay. But in appx. 5% the result is
"Unbekannter Host" and that is incorrect in most cases.

I understand that many things can be the reason. But this system runs fine
and the clipper routine (using ping.exe) did not have this problem before.
This system has a fast and very reliable 10Mbit connection to the internet,
so that is NOT the problem. I have the feeling once he has ONE error, a few
follow by mistake.

Any hints ?

Any known bugs ?



cresult:=""
a := SocketGetHostByName( "www."+trim( domain ) )
if a = NIL
    cresult := "Unbekannter Host"
else
    b     := a[ 5 ]
    cresult := SocketInetNtoA( b[ 1 ] )
endif
Stephan KoenigRe: SocketGetHostByName
on Sun, 31 Mar 2002 22:45:33 -0500
the errorcode is always 11001 on these "mass" errors.

Once on error is there, up to 20 with the same errorcode follow within half
a second.
Andreas HerdtRe: SocketGetHostByName
on Tue, 02 Apr 2002 10:26:24 +0200
Hi Stephan,

Have tried to reproduce the behaviour described. It runs like a charme at my side.....

Any hint to track down the problem would be appreciated.

Is the URL with which the problem comes up accessable from outside?
Does the problem comes up with any URL?



--


Andreas Herdt
Alaska Software Technology AG

-------------------------------------------------------------
Technical Support EMEA: mailto:support@de.alaska-software.com
Technical Support APRA: mailto:support@us.alaska-software.com
News Server:            news://news.alaska-software.com
Homepage:               http://www.alaska-software.com
-------------------------------------------------------------



"Stephan Koenig" <S.Koenig@LaserPlus.de> schrieb im Newsbeitrag news:3ca7cd32$1@asgcom.alaska-software.com...
> I have to verify dns entrys (www.) I use the above function for this. When I
> use it a single time, everything is okay. But in appx. 5% the result is
> "Unbekannter Host" and that is incorrect in most cases.
>
> I understand that many things can be the reason. But this system runs fine
> and the clipper routine (using ping.exe) did not have this problem before.
> This system has a fast and very reliable 10Mbit connection to the internet,
> so that is NOT the problem. I have the feeling once he has ONE error, a few
> follow by mistake.
>
> Any hints ?
>
> Any known bugs ?
>
>
>
> cresult:=""
> a := SocketGetHostByName( "www."+trim( domain ) )
> if a = NIL
>     cresult := "Unbekannter Host"
> else
>     b     := a[ 5 ]
>     cresult := SocketInetNtoA( b[ 1 ] )
> endif
>
>
>
>
Stephan KoenigRe: SocketGetHostByName
on Thu, 11 Apr 2002 12:44:52 -0400
Andreas,

I have not forgotten about you. I was in a hurry so I needed a workaround.
It was good to hear that there was no known problem.

I will do further testing.

Stephan