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 subdomains in DNS
You have a webserver (or any server) on your local network, and Freesco is configured to forward port 80 (HTTP) to that server. You also have a domain name (say, www.example.com) that points to your public IP address.
When someone from the outside world punches www.example.com into their browser, your webpage shows up. But if you type www.example.com into your browser on your local network, nothing happens.
You need to configure Freesco's DNS server for your domain. The DNS configuration is stored in the file /mnt/router/etc/named.hst. Here's how to update it.
Login as root, edit
Copy /mnt/router/etc/named.hst to /etc, restart your nameserver with
Longer walkthrough for newbies:
Connect to your Freesco box via telnet (under Windows, just type
Now, you need to enter any subdomains you want to use. For our example, we wanted router.example.com to point to 192.168.0.1, www.example.com to point to 192.168.0.10, and mail.example.com to point to 192.168.0.15, so we entered:
As you can see, the first part of each line is the subdomain you want to use (eg: using router translates to router.example.com).
And note that where we say
Finally, you should restart your nameserver. Type:
At this point, your new subdomains should be ready to go! Load up your browser and punch in www.example.com (substitute your domain, of course) and your site should appear.
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
Next, you should probably setup your nameserver for reverse DNS lookups as well - click here to see how.