DNS redirecting to Apache
- by leo
I have CentOS installed on LVM, that is on Debian. There are BIND and Apache on CentOS. I need to access sites from browser on Debian with names like: 1.domain, 2.domain, etc. So I set up Apache and I can access these sites, but using /etc/hosts/ on Debian. And now I'm trying to configure bind.
named.conf:
zone "domain" IN {
type master;
file "/var/named/domain.zone";
allow-update { none; };
};
192.168.100.1 is DNS' ip;
192.168.100.139 is Apache ip;
domain.zone:
$TTL 86400
@ IN SOA domain. root.domain. (
100
1H
1M
1W
1D )
@ IN NS ns1.domain.
@ IN A 192.168.100.139
ns1 IN A 192.168.100.1
WWW IN A 192.168.100.139
1 IN A 192.168.100.139
2 IN A 192.168.100.139
www.1 IN A 192.168.100.139
www.2 IN A 192.168.100.139
Also, is it necessary to configure 100.168.192.in-addr.arpa?
Please, explain me where I'm wrong.