If you are testing the setup on a server that is not yet live, and you haven't pointed your DNS to your new server yet, here is a trick. You can fool your client machine into resolving the new IP by editing your local hosts file. Here's how it works: Your operating system will attempt to resolve domain names to IP addresses by first accessing a local file called the "hosts" file, which is simply a database of IP-to-hostname mappings. DNS is queried only if the domain name that you are looking for is not listed in this file. So, to trick your OS into resolving a "fake" IP address for your domain (pointing to your new server), just add one line to your local hosts file! For Example: 12.13.14.15 hostname.YOUR-DOMAIN-HERE.com Host File Locations: Windows 2000: C:\winnt\system32\drivers\etc\hosts Unix: /etc/hosts Lock Down Your Server Lock Down Your Linux System with LOKKIT! Lokkit is a cursor-based ipchains administration tool that ships standard with RedHat Linux. Lokkit simplifies the task of implementing a host-based (software) firewall solution for your Linux server. By enabling the ability to selectively open only those ports necessary to run your DNS, mail, or web server, your risk of being hacked is minimized. Simply type "lokkit" as root. Make sure to keep the SSH port (22/TCP) open so that you can remotely administer your server!
|