Re: www forward with bind
On Fri, 1 Mar 2002, Alan James wrote:
> On Fri, Mar 01, 2002 at 05:00:28PM +0100, Sebastiaan wrote:
> > Hello,
> > I have tried various variations in the zone files, like:
> > www IN CNAME www.me.provider.com.
> > but I have not gotten it to work.
> That should work, sort of. Assuming the ret of bind is set up ok
> then resolving the www address should give you the ip of your
> However if your website is a virtual host, then your http queries
> will be asking for an invalid website. The browser passes the domain
> name as part of the http request and www.domain.com wont be recognised
> by the provider.com webserver. Could that be the problem ?
> If not, you'll have to supply more details of what goes wrong.
Yes, I was a little bit short. My /var/log/daemon.log nags me when
restarting bind with:
named: www.sacred-key.org has CNAME and other data (invalid)
named: /etc/bind/db.sacred-key:21:www.sacred-key.org: CNAME and OTHER data error
named: master zone "sacred-key.org" (IN) rejected due to errors (serial 2002030108)
named: master zone "123.163.62.in-addr.arpa" (IN) loaded (serial 2002030102)
My db.sacred-key is (relevant part, AFAICT):
IN NS ns1.sacred-key.org.
IN MX 25 mail.sacred-key.org.
IN MX 50 mail.chello.nl.
IN A 126.96.36.199
ns IN A 188.8.131.52
ns1 IN A 184.108.40.206
www IN CNAME www.cosjoan.box.nl.
and the website is a virtual host, the page is located at
In the past we used a free url forwarder on the web, which was integrated
in this way:
www IN NS www-dns
www-dns IN A 220.127.116.11
with 18.104.22.168 the DNS server of the forwarder. Worked perfectly, but
the service stopped.
Thanks in advance,