www.mysite.com works but not mysite.com - unable to create sub domains too
I followed this tutorial:
http://thinkingnectar.com/2008/getti...-in-localhost/
But the links i created are not accessible. Is it to do with mysite.com not working?
I was doing stats.mysite.com and forums.mysite.com, but didnt work
Code:
Code:
$ORIGIN mysite.com.
$TTL 86400
@ IN SOA ns1.mysite.com. admin.mysite.com. (
2010011801 ; serial number
28800 ; Refresh
7200 ; Retry
864000 ; Expire
86400 ; Min TTL
)
NS ns1.mysite.com.
MX 10 mail.mysite.com.
ns1 IN A my ip
www IN A my ip
tomato IN A my ip
mail IN A my ip
* IN A my ip
forums IN A my ip
stats IN A my ip
Code:
<VirtualHost myip:80>
DocumentRoot /var/www/stats/
ServerName stats.localhost
<Directory /var/www/stats/>
Options Indexes FollowSymLinks MultiViews +Includes
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
also sent:
nsdc rebuild
/etc/init.d/nsd3 restart
this is under: htc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 stats.localhost.localdomain localhost
127.0.0.1 forums.localhost.localdomain localhost
myip gdghdrh.drhdrhd.com gdghdrh