redirect mysite.com to www.mysite.com how?
Eivind Olsen
eivind at aminor.no
Tue Jul 26 21:49:09 UTC 2005
--On 26. juli 2005 17:31 +0200 Tom Pouce <please at no.spam> wrote:
> 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
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
<eivind at aminor.no>
More information about the bind-users
mailing list