For this to work, your default domain (or "primary DNS suffix") on all of the machines on your network should be example.com (or whatever your domain name is).
On Windows XP, for example, you can change your primary DNS suffix under
Setting up reverse DNS for your subdomains
You've got a domain setup in DNS (using Freesco) to resolve to a machine on your LAN, as explained here. Now, you can visit your website from the local network, but you want to be able to lookup a machine's name based on its IP address.
You need to configure Freesco's DNS server for reverse DNS lookups. The DNS configuration is stored in one of three files, depending on your local addressing scheme.
Login as root, edit the file named above, and add one entry per subdomain in the format:
A couple of notes:
Copy your reverse DNS file to /etc, restart your nameserver with
Longer walkthrough for newbies:
Connect to your Freesco box via telnet (under Windows, just type
NOTE: You need to replace
Now, you need to enter any subdomains that you want to setup. For our example, we wanted 192.168.0.1 to resolve to router.example.com, 192.168.0.10 to resolve to www.example.com, and 192.168.0.15 to resolve to mail.example.com, so we entered:
This is a bit tricky. The first item on each line is the LAST TWO octets of your IP address, in reverse order (eg: if your address was 192.168.47.92, you'd use 92.47). If you're using 10.x.x.x addresses, it's the last THREE octets in reverse order.
And note that where we say
Finally, you should restart your nameserver. Type:
At this point, you should be able to type
Note that your default domain (or "primary DNS suffix") on all of the machines on your network should be example.com, as well. On Windows XP, for example, you can change your primary DNS suffix under