Virtual Hosts don't work with "www"

Jarek Buczyński jaro80 at gmail.com
Sun Feb 18 23:43:02 UTC 2007


Hello

I have problem with "www", I configured virtual hosts (in this example two
host1, host2)

It works when I use http://host1.domain.edu, http://host2.domain.edu but
with "www" doesn't?

At begin I had reverse problem with domain (it works only with "www" ), I
resolve this added A record to domain (@       A       1.2.3.4)

How resolve problem with virtual hosts?

My  zone file:

-----------------------------------------------
$ORIGIN domain.edu.

$TTL 1H

@       IN SOA  ns1    admin (
                        2007010101
                                8H
                                4H
                                4W
                                1D
)

        NS      ns1


ftp     CNAME   jupiter
www     CNAME   @


jupiter A       1.2.3.4
@       A       1.2.3.4
ns1     A       1.2.3.4

host1	A       1.2.3.4
host2	A       1.2.3.4


-----------------------------------------------

--
Best regards



More information about the bind-users mailing list