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

Developer

Forums

Forums:

Hi

I've came accross this issue calling INETMGR_GetHostByName(pi->m_pINetMgr, &pi->m_dnsr, pi->m_pszHost, &pi->m_cb);

Callback reports timeout (error 530). Emulator's output window shows two incorrect DNSes:
DNS server[0] == 204.127.198.4
DNS server[1] == 63.240.76.4
/// following are my DBGPRINTFs:
*** Inside CALLBACK ****
*** INSIDE TCPNDS hanlder. Error : 530
*** INSIDE TPCNDS handler. IP adr: 0
*** IP ADDR: 0.0.0.0

Both DNS servers are ATTBI servers I'm using at home, but when I move my laptop to T-Mobile HotSpot, default DNS server is:
Default Server: cachedns01.wa.net.hotspot.t-mobile.com
Address: 10.11.53.10
When 'nslookup' is run manually through DOS command prompt, and if I set server to one of those reported by emulator (like ns1.attbi.com), command line tool 'nslookup' also reports that DNS request timed out.

Question: how do I specify default DNS server for the emulator, since emulator uses incorrect ones (at this moment)? Couldn't find that in BREW_Emu.dat file.

Thanks
- TPW

The Emulator uses the registry to determine what DNS servers to use. The details differ based on which generation of Windows you are using, but basically it iterates over all the network interfaces looking for NameServer or DhcpNameServer entries.
When you move to the T-Mobile HotSpot, is your home network interface still enabled? If so, it might be first in the Registry - try disabling it.
FYI, the ability to specify DNS servers in BRE_Emu.dat will be available post-2.1.

The Emulator uses the registry to determine what DNS servers to use. The details differ based on which generation of Windows you are using, but basically it iterates over all the network interfaces looking for NameServer or DhcpNameServer entries.
When you move to the T-Mobile HotSpot, is your home network interface still enabled? If so, it might be first in the Registry - try disabling it.
FYI, the ability to specify DNS servers in BRE_Emu.dat will be available post-2.1.

I ran into this problem a little while ago.
The emulator was picking up the DNS servers for my wireless card, which wasn't even plugged in. I was at a different office connected by cable, and disabling the wireless connection didn't help.
I had to specify DNS servers for the cable connection rather than use DHCP.

I ran into this problem a little while ago.
The emulator was picking up the DNS servers for my wireless card, which wasn't even plugged in. I was at a different office connected by cable, and disabling the wireless connection didn't help.
I had to specify DNS servers for the cable connection rather than use DHCP.