1

Background Setup Info

Domain: abc.ca.gov

Web Server Name: web1

Server FQDN: web1.abc.ca.gov

DNS Alias for FQDN: intranet

Browser URL: http://intranet/


Question 1: Is it possible then to setup a canonical sub-domain for this alias? Ex.

http://docs.intranet/

Question 2: If not, how about a new alias for a real sub-domain? Ex.

Sub-domain          DNS Alias         URL
docs.abc.ca.gov     intranetdocs      http://intranetdocs/

(Optional) The intention here is to prep our intranet site for serving up file attachments (MS Office, Adobe, etc.) from a separate domain, so that we might build a mini-cms app and keep the files out of the website (1998, I know)... any constructive advice/suggestions are welcome.


Why the downvotes? It's a pretty legit, on-topic question and relates directly to web software development (thousands of SO questions around DNS, domains, and routing).

  • Is your intranet site running on IIS 7+? –  Jan 05 '12 at 00:26
  • It uses IIS 7.5 – one.beat.consumer Jan 05 '12 at 00:30
  • +1 to make up for someone's poorly communicated downvote (not mine). What you are after could generally be considered a reverse proxy. I've only lightly played with the [Application Request Routing](http://www.iis.net/download/applicationrequestrouting) extension for IIS (only available for 7+), but [here](http://forums.iis.net/t/1156458.aspx) is a similar question from the IIS.net forums. –  Jan 05 '12 at 00:41

2 Answers2

0

It's hard to tell what you're asking for here, however I'll try to answer it anyway. From what I see you have a web server with FQDN of web.blah.realTLD. First off I highly recommend against using a fake TLD and setup a subdomain for this, however you can't setup a Cname for the root of a DNS zone (RFC 1034). Your best option is to set an A record for docs.intranet to the IP address of the web server.

Jacob
  • 9,204
  • 4
  • 45
  • 56
0

What you call a "DNS Alias for FQDN" is probably nothing else than an alias from intranet.abc.gov.ca to web1.abc.gov.ca.

In general, you can leave out the domain for hostnames if the domain is in the search list of your DNS resolver. Therefore, http://‍intranet and http://‍web1 should both point to the same server (but not necessarily the same website, see Question 2 below).

Question 1

A name like docs.intranet will not work reliably.

Originally, resolvers would try the search list unless the domain name ended in a dot. With these resolvers, an alias such as docs.intranet would indeed work. However, this behaviour also means that the resolver would try to append the domains from the search list to any FQDN that is written without the final dot. For example, if someone want to access www.google.com (instead of www.google.com.), the resolver would first try www.google.com.abc.gov.ca (which hopefully does not exist) and only then www.google.com., causing a small and unnecessary delay.

For this reason, many resolvers now only apply the search list if the domain name does not * contain* a dot. This means that www.google.com will be looked up directly as www.google.com. because it contains a dot. With these resolvers, docs.intranet will be treated as docs.intranet., which does not exist.

Question 2

You don't need to add another subdomain. Just set up intranet-docs (or whatever name you prefer) as an additional alias for web1.abc.gov.ca.

However, setting up an alias in the DNS is only half of the configuration. The DNS alias only means that the browser will contact the correct machine when you access http://‍intranet-docs.

As a second step, you'll need to tell the web server running on that machine what to do with a request for that name. That is, you will have to configure a new virtual host intranet-docs.abc.gov.ca (with intranet-docs as an alias) in IIS. Please note that the name the web server sees as the name of the virtual host is the name used in the URL, not the canonical name used in the DNS.

cfaerber
  • 31
  • 4