Domain with WWW not resolving problem!

Linux/Unix Add comments

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

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • feedmelinks
  • Furl
  • Fleck
  • MyShare
  • NewsVine
  • Netscape
  • Slashdot
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Wists
  • YahooMyWeb

One Response to “Domain with WWW not resolving problem!”

  1. pbu Says:

    Try also

    ServerAlias www

    in the apache virtual host directive.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login