Hi!
First at all... you do not need a DNS server for that. It works perfectly without it. How?
1. Configure the TCP/IP protocoll as follows:
- Server: IP: 192.168.1.1, Mask 255.255.255.0
- Client: IP: 192.168.1.2, Mask 255.255.255.0
Now they are on the same network and can communicate with eachother (check via ping). They are also accessible via theyr name as well as IP.
2. Configure client to think that the server is someone else:
-go to the hosts file (winnt\system32\drivers\etc\ for NT or system\ for 9x, the file is named "hosts" with no extension) and add the following line(s):
- 192.168.1.1 www.the_server.com (or whatever the "real" server is called) as many times as the number of servers you need. (there is an example inside this file)
-if necessary, configure the server in the same way (ONLY if the software on the server referes to the server name, otherwhise it is not needed)
That's it. Now the client computer will think that the server X's IP is 192.168.1.1 (your server!) and will initiate the TCP connections with your server. Note that this works only offline, if you wat to use the real server from your client computer, comment or remove the lines you added in the hosts file.
The IPs presented are part of the class B intranet reserved range, which you can use with no problems. However you can use whatever IPs you like as long as they are ping-able from the other computer...
Note: Change of the host file does not require a system restart and the changes take place imediately! (so you can do this "on the fly")
Best regards,
Lusu.