On your LAN it's generally easier if you use fixed-IP addressing. On your Linux machine you can directly edit /etc/hosts
adding the fixed-IP address and name of each machine. On the Windows machines, you edit the network settings giving each machine a unique address; somewhere or other (I've forgotten) there is an equivalent of /etc/hosts
where entries can be made for the fixed-IP address of machines on your LAN. Your D-Link manual should guide you in how to set up Windows machines for fixed-IP.
Precisely how that's done in Ubuntu I don't know -- I believe there's a network GUI that you use to specify network settings.
Assuming that your D-Link is at 192.168.1.1 (it's your gateway address), you may want to set fixed-IP addresses to 192.168.1.10, 192.168.1.20 and so on. If your D-Link is doing DHCP, it probably starts "leasing" addresses at 192.168.1.100 so as long as your stay below that, you can use fixed-IP with no problems. Your /etc/hosts
file should look something like this
# For loopbacking.
192.168.1.10 fubar.com fubar
192.168.1.20 snafu.com snafu
192.168.1.30 pita.com pita
once you've done the addressing changes (the equivalent on Windows look different but serves the same purpose).
The trick is that the boxes have to know who they are and who everybody else is by name (which resolves to a fixed address). That'll also make it easier to set up Samba
Hope this helps some.