i had a wierd problem with my bind dns server which will not resolve the domain name with www. it works perfectly well, when i type http://domain.com without www in the browser it gets resolves to my IP address.
My zone file looks like this
$ttl 38400
domain.com. IN SOA ns1.domain.com. webmaster.domain.com. (
1211542287
10800
3600
604800
38400 )
domain.com. IN A 1.3.5.7
ns1.domain.com. IN A 1.3.5.7
ns2.domain.com. IN A 2.4.6.8
domain.com. IN NS ns1.domain.com.
domain.com. IN NS ns2.domain.com.
www IN CNAME domain.com.
ftp IN CNAME domain.com.
mail IN MX 0 domain.com.
I am pointing my domain.com to A record having CNAME for www. I issued some commands to rndc and it worked after sometime.
rndc reload domain.com
then
dig @ip.address www.domain.com
after sometime domain got easily resolved with or without www

















August 14th, 2008 at 1:23 pm
Try also
ServerAlias www
in the apache virtual host directive.