1

While it seems to be a kind of typical pattern for the intranet ... however haven't been able to find the right and working solution for it. I'm trying to set up the intranet site accessible by the link: http:// teamwork/ and created for this a zone file below for BIND 9. The strange thing in this configuration is that I can't access the web site by one-word link "teamwork", however once I add a dot - "teamwork." - it works! How can I get rid of the dot at the end of tld domain name so just "teamwork" in the browser address bar could work? This is my zone file for "teamwork":

$TTL    1d
@   IN  SOA ns.teamwork. root.srv.teamwork. (
                 20130704
                 24h
                 12m
                 8w
                 5h )
     IN NS  ns.teamwork.
ns   IN A   172.18.0.2
www  IN A   172.18.0.2
teamwork.   IN  A   172.18.0.2

1 Answers1

0

Don't set up a TLD for your one word URL.

Instead add an A or CNAME record for teamwork.example.com (where example.com is your regular domain name) and make sure the clients have example.com in their DNS search domains. Any hostname that does not include dots* will automatically try appending the DNS search domain.

For example, if your search domain is superuser.com and you use http://meta/ it will automatically go to http://meta.superuser.com/.


* Or all, depending on your resolver's configuration.

bahamat
  • 5,782