View Single Post
  #1 (permalink)  
Old 05-20-2007, 06:35 PM
n8mack33's Avatar
n8mack33
PPCGeeks Regular
Offline
 
Join Date: Feb 2007
Posts: 175
Reputation: 15
n8mack33 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Exchange DNS registry edit with custom roms

I have been using the registry edit described below to fix the problem described below. The registry edit no longer seems to work on custom roms (I have used Colnels and currently BigJ) for both 3.3 and 3.5 roms. Does anyone have any ideas? Perhaps the registry entry belongs in another location?

Thanks for any help or ideas. It is a pain to reset my device everytime I disconnect from my work computer. By the way, the correct entry is dnscacheenable (without a d at the end) - there is some debate because of the way it is described in the post.

__

While the following problem occurred with a Palm Treo 700w, the below
workaround may apply to other Windows Mobile 5.0 devices suffering from
similar problems.
The problem appears to be endemic to particular devices and may be
related to the way a particular device handles USB connect/disconnect
events.

Symptom:
- ActiveSync DirectPush initially works correctly wirelessly.
- The Windows Mobile device is then connected to a PC via USB and
continues to operate correctly.
- Once the device has been disconnected, wireless synchronization
fails. ActiveSync times out and clicking "View Status" reveals a status
code of 0x80072EE2.
The device then refuses to sync wirelessly until a soft reset is
performed.

Further Details:
This problem is seen in configurations where the Exchange server being
accessed for synchronization has different external (i.e. public) and
internal (i.e. private) IP addresses which are normally resolved from
the same FQDN. (e.g. On the Internet echxg.foobar.com might equate to
99.88.77.66 while on the inside of a NATed network with an internal DNS
it might equate to 10.9.8.7.)

Cause:
The issue appears to have to do with the Windows Mobile DNS cache not
being cleared properly upon a wired/wireless state transition when the
USB cable is unplugged. When connected to a PC running the desktop
ActiveSync software a Windows Mobile device has proxied wired access to
the corporate network and performs a DNS lookup of the Exchange
server's FQDN against the internal DNS. This address appears, however,
to remain in the cache even after disconnecting the USB cable and thus
moving back to the public (internet) address space. ActiveSync on the
Windows Mobile device then fails, as the server's internal address is
inaccessible. (A soft reset naturally clears the DNS cache.)

Workaround:
Disable the Windows Mobile DNS cache. This requires a registry
modification. Windows Mobile does not include a registry editor, but
free third-party editors are available (such as one from www.phm.lu).

Change the value of:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curre ntVersion\InternetSettings\DnsCacheEnabled
to 0
If DnsCacheEnable does not exist, create it as a DWORD value.

A soft reset is necessary for the change to take effect.
Reply With Quote