This week I needed to set a fixed IP for a specific DNS name (I wished to bypass DNS resolution) in my WM5.0 PDA. While in Windows XP/2000 there is a /etc/hosts file, there isn’t any equivalent file in WM5.0 .
There is actually a way to achieve the same fixed DNS resolution, creating an entry into the registry:
For example, to set 192.168.0.5 for host “host01″, you can create:
[HKEY_LOCAL_MACHINE\\Comm\\Tcpip\\Hosts\\host01]
"ipaddr"=hex:c0,a8,00,05
More at windowsmobilepro.blogspot.com.
UPDATE 09/09/2006: Pocket Hosts is a tool written by Marc Zimmerman that allows you to edit the static host name to IP address mappings on a Pocket PC.

0 Response to “/etc/hosts for Windows Mobile 5.0”