I'm pretty new to this! I'm trying to redirect my url to my server, so all I did was this :
http://www.debian-administration.org/articles/412
which consisted of adding a /etc/apache2/conf.d/virtual.conf creating /etc/apache2/sites-available/www.example.com and typing a2ensite www.example.com
on my domain manager, I just redirected the dns to my server IPs.
It didn't work. I contacted my server support that told me I needed to use bind9.
So I tried adding the zones in /etc/bind/named.conf.local:
zone "lyon01.com" {
type master;
file "/var/lib/bind/example.com";
};
then created /var/lib/bind/example.com as follow :
;
; BIND reverse data file for broadcast zone
;
$TTL 604800
@ IN SOA lyon01.com. root.lyon01.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS lyon01.com.
and restarted BIND: /etc/init.d/bind9 restart
Also, a friend told me I didn't have to do this, I just had to add 127.0.0.1 example.com to my /etc/hosts file
none of these are working, help!