not typing in www

Robert Cates robert at
Thu Jun 23 19:14:40 UTC 2005


there seems to be different ways of DNSing your domain name, but I've always 
known it to be that '' has to be entered as an A record to ever/even 
exist, and 'www' would be entered as an alias (CNAME) to the A record 
''.  This way the visitor will reach the site simply by giving , and IF there is an alias 'www' they can give to reach the site, if not, the site won't be found. 
Keep one thing in mind though - probably 99.9% of the Internet users out 
there instinctively give/enter 'www' before the domain name when entering in 
the URL, so if their request comes back not found...


----- Original Message ----- 
From: "Sebastian Castro Avila" <secastro at>
To: "scedarst" <dbickel at>; 
<comp-protocols-dns-bind at>
Cc: <secastro at>
Sent: Thursday, June 23, 2005 8:40 PM
Subject: Re: not typing in www

On Thu, 23 Jun 2005 09:51:22 -0400, scedarst <dbickel at>

> Could anyone tell me what entry i need to put in my dns so my users
> dont have to type www?  They want to type instead of

In the same way you define an A record for "www", you must define an A
record for "".

Your zone should look like

@ IN SOA ( <soa params> )
   IN NS
   IN NS
   IN MX <prio>

and here you add
   IN A <ip.address>

After checking the zone using named-checkzone, reload it (with rndc reload
zonename) and check using dig (dig A @your.server).

Sebastian E. Castro Avila             sebastian at
Administrador de DNS, NIC Chile
Fono: (2) 9407705                  Fax  : (2) 9407701

More information about the bind-users mailing list