Here are steps to assign a hostname to an XP computer:
Right Click “My Computer” on the desktop.
Click the “Computer Name” tab.
Click the “Change” button.
Enter “Computer name:”
Click the “More…” button
Enter a “Primary DNS suffix of this computer”
You should restart after this. Open a command prompt and ping the hostname you created from the computer you did this on. If you would like to assign a well known host name to your machine that other computers can access remotely, check out TZO for “Dynamic DNS” options. This lets you assign a well known host name to DHCP addresses.
The full computer name is the concatenation of the computer name and the Primary DNS suffix. This will resolve locally on the server itself (i.e. it will resolve for the machine on which you make this change). If you have other machines on your LAN, you can enter the server’s hostname and IP in your host file(s) to resolve on remote machines on your network for free, or you can additionally use the TZO dynamic DNS service if you would like to open your machine up for Internet access using a ‘well known’ host name.