Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi

What to do when nResult (from AEEDNSResult) is set to 563, in callback from INETMGR_GetHostByName() (563 is 0x200 + 51 (51 = AEE_NET_UNKDOMAIN = unknown domain, no address records)? It's more often 563 then not. Which is driving me crazy.

As a consequence, POST-ing to the server fails quite often, because name doesn't get resolved. Talking about LGE VX4500 in this case. What to do? Maybe working with IDNS could help? I was hoping that GetHostByName()'s callback would get called once when DNS resolves the name, but it returns quite fast, with the error code (UNKDOMAIN).

Anyone had similar problem?

(ps web server is alive and at that name. I'm constantly POSTing requests through jscripts and verifying return values).

AEE_NET_UNKDOMAIN indicates that communication with the DNS server was successful, but that the DNS server did not have an entry for the hostname you are trying to resolve. In this scenario, direct use of IDNS will not help.
Most devices have more than one DNS server configured; I am guessing that one server can resolve your host while the other cannot. That may be why it works sometimes and not others.
DNS servers may be confgured in the ROM, or they may be pushed down during PPP setup; not sure which method your device uses.
In any case, before lookup occurs, there is a DBGPRINTF of the servers that will be used. Try doing nslookup from a PC using these servers and see if they all know about your host.

AEE_NET_UNKDOMAIN indicates that communication with the DNS server was successful, but that the DNS server did not have an entry for the hostname you are trying to resolve. In this scenario, direct use of IDNS will not help.
Most devices have more than one DNS server configured; I am guessing that one server can resolve your host while the other cannot. That may be why it works sometimes and not others.
DNS servers may be confgured in the ROM, or they may be pushed down during PPP setup; not sure which method your device uses.
In any case, before lookup occurs, there is a DBGPRINTF of the servers that will be used. Try doing nslookup from a PC using these servers and see if they all know about your host.

Hi
I cannot get that DBGPRINTF info to show up in BREWLogger. It's in output window, when running on the emulator; but there is no problem with running on the emulator (besides those DNS servers are different).
Do you know, if there is any reason why DBGPRINTF wouldn't log DNS server[0] and [1] to the Logger?

Hi
I cannot get that DBGPRINTF info to show up in BREWLogger. It's in output window, when running on the emulator; but there is no problem with running on the emulator (besides those DNS servers are different).
Do you know, if there is any reason why DBGPRINTF wouldn't log DNS server[0] and [1] to the Logger?

Sorry, I don't know about BREWLogger.
Another way to determine the servers is to first bring up PPP and then use INETMGR_GetOpt() to retrieve INET_OPT_DNS_SERVERS as an array of INAddr.

Sorry, I don't know about BREWLogger.
Another way to determine the servers is to first bring up PPP and then use INETMGR_GetOpt() to retrieve INET_OPT_DNS_SERVERS as an array of INAddr.