I want to put an entry into my domain so that http://mysite.com will be
redirected to http://www.mysite.com
How should I configure this?
We are using BIND 9
Tom
A redirect such as this needs to be done on the webserver, not in DNS.
But perhaps what you're really asking is how you make mysite.com point to
the same webserver as www.mysite.com? You do it something like this:
mysite.com. SOA <normal SOA-record etc...>
mysite.com. NS <your nameserver, repeat for your second nameserver>
mysite.com. A 1.2.3.4
www.mysite.com. A 1.2.3.4
In other words, just give mysite.com an A-record pointing to the same
IP-address as www.mysite.com, and requests for both will end up to your
webserver. And if you then want http://mysite.com to be redirected to
http://www.mysite.com you'll need to configure your webserver accordingly.
But, it looks like your DNS-setup is already working, since you've decided
to create www.mysite.com as a CNAME pointing to mysite.com, and mysite.com
has two A-records, 64.136.21.218 and 64.136.29.218.
--
Regards / Hilsen
Eivind Olsen
<eiv...@aminor.no>