Yup, the problem is with the address quote.yahoo.com, gethostbyname()
returns a DNS timeout. Doing an nslookup on this address returns:
Non-authoritative answer:
Name: finance.yahoo.com
Addresses: 216.115.105.5, 216.115.105.236, 216.115.104.64,
216.115.105.239
216.115.104.110, 204.71.203.153, 216.115.105.238,
216.115.105.231, 216
.115.104.245
216.115.104.68, 216.115.104.244, 216.115.104.62,
216.115.105.233, 204.
71.203.161
216.115.104.247, 216.115.105.234, 216.115.104.250,
204.71.203.156, 204
.71.203.160
216.115.104.65, 204.71.203.157, 216.115.105.6, 216.115.104.69,
216.115
.105.10
Aliases: quote.yahoo.com
If instead I use finance.yahoo.com then there are no problems. Seems
like the PalmOS TCP/IP stack has problems with aliased DNS names.
Hope Palm takes a look at this.
Chris
Edmund Seto wrote:
>
> Turns out that Christian and I working on the same sort of program. Hence,
> I'm running up against the same sort of problems with name resolution that
> Christian is facing. If anyone has a solution for this, I wouldn't mind
> hearing about it as well.
>
> Thanks much!
>
> Edmund Seto
>
> "Christian Vandendorpe" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Looking at the problem closer, I am actually also experiencing this
> > problem myself today (which kind of makes sense since all my users are
> > now mailing me).
> >
> > It seems that Yahoo (finance.yahoo.com) now returns 24 IP addresses and
> > that the Palm OS is not able to cope with this. At first the error was
> > netErrTimeout, I then increased the timeout value in NetLibGetHostByName
> > and now the error is netErrDNSTimeout.
> >
> > Can any Palm engineer please confirm that this could be a problem on the
> > Palm OS ?? Are there any workarounds (apart from using IP addresses)?
> >
> > Many thanks
> >
> > Chris
> >
> >
> > Christian Vandendorpe wrote:
> > >
> > > Hi all,
> > >
> > > I've been using gethostbyname() in my network code for a long time with
> > > the fix for hostnames that return more than 4 addresses. This has worked
> > > fine. Every once in a while a user comes back to me saying that they got
> > > a "gethostbyname error" (an error message I output in case gethostbyname
> > > returns NULL). I usually tell them that this must be a problem with
> > > their DNS configuration in their network settings.
> > >
> > > However today I got 5 emails from users saying that gethostbyname
> > > failed. On my 2 Palms and in POSE it works fine. What can make
> > > gethostbyname() to fail ??? The same users usually claim that their
> > > other network apps (email, web browser) work fine.
> > >
> > > Any clues? anyone's got a reliable function to connect to a net address?
> > >
> > > Thanks in advance
> > >
> > > Chris
> >
> >
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/