Quick Config Question

Hi, I have most everything set up correctly, but apparently I am missing
something. I can get to my mail servers fine, and the websites work
fine as long as you include the hostname. How do I get it to redirect
to www if the user only types domain.com?

$TTL 86400
$ORIGIN dogsass.com.

@ 1D IN SOA ns1.rootsec.net. dnsadmin.rootsec.net. (
                              2004123101 ; serial
                              4h ; refresh
                              15 ; retry
                              1h ; expire
                              1h ; minimum
                             )

        IN NS ns1.rootsec.net.
        IN MX 10 mail.dogsass.com.

;
;HOST DEFINITIONS
;
www IN A 64.203.237.101
mail IN A 64.203.237.101

;
;ALIAS DEFINITIONS
;
ftp IN CNAME www

Thanks

David A. Coursey

"David A. Coursey" <david@send2fax.com> writes:

Hi, I have most everything set up correctly, but apparently I am missing
something. I can get to my mail servers fine, and the websites work
fine as long as you include the hostname. How do I get it to redirect
to www if the user only types domain.com?

You have to put in a domain name in your zone file, viz:

@ IN A 64.203.237.101

You can NOT put in a CNAME like this

@ IN CNAME www.dogsass.com.

because RFC 1034 sec 3.6.2 states:

   If a CNAME RR is present at a node, no other data should be
   present; this ensures that the data for a canonical name and its aliases
   cannot be different.

and you have SOA and NS records (at minimum, and probably an MX record
there too for good measure) at that node.

hope this helps!

                                        ---rob