Making http://example.com./ work like http://www.example.com./

You've come to this page because you've asked a question similar to the following:

I have my own content DNS and content HTTP services. Everyone can use http://www.example.com./ to see my web pages. How do I configure things so that everyone can use http://example.com./ as well ?

This is the Frequently Given Answer to such questions.

It's very simple:

Adding the record to your DNS database

The record that you add to your DNS database cannot be a client-side alias (i.e. a CNAME resource record). example.com. is a delegation point in the namespace graph, and delegation points cannot be client-side aliases. You have three options:

How you add the record depends from your choice of content DNS server software:

Adding the website alias to your content HTTP server

For best results, make sure that your content HTTP server is not sensitive to the presence or absence of a trailing dot. Users who don't want their web browsers to be subject to "DNS search list spoofing" may use fully qualified domain names in URLs. You should support them.

How you add the website alias depends from your choice of content HTTP server software:


© Copyright 2003 Jonathan de Boyne Pollard. "Moral" rights asserted.
Permission is hereby granted to copy and to distribute this web page in its original, unmodified form as long as its last modification datestamp is preserved.