DNS redirecting to Apache

Posted by leo on Server Fault See other posts from Server Fault or by leo
Published on 2013-11-10T13:52:05Z Indexed on 2013/11/10 15:58 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about apache2

Related posts about dns