named.conf
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "." IN {
type hint;
file "named.root";
};
zone "localdomain." IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost." IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa." IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa." IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa." IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "vodokanal.loc." IN {
type master;
file "vodokanal.loc";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa." IN {
type master;
file "192.168.vodokanal.loc";
};
include "/etc/rndc.key";
vodokanal.loc
@ IN SOA ns1.vodokanal.loc. webmaster.vodokanal.loc. (
1194087297; Serial
10800; Refresh
3600; Retry
604800; Expire
10800 ); Minimum
vodokanal.loc. IN NS ns1.vodokanal.loc.
vodokanal.loc. IN A 192.168.0.201
ns1.vodokanal.loc. IN A 192.168.0.201
www IN CNAME vodokanal.loc.
httpd.conf
NameVirtualHost 192.168.0.201:80
<VirtualHost 192.168.0.201:80>
ServerName vodokanal.loc
ServerAdmin
webmaster@vodokanal.loc
DocumentRoot /var/www/vodokanal.loc
</VirtualHost>
192.168.vodokanal.loc
$TTL 86400
0.168.192.in-addr.arpa. IN SOA ns1.vodokanal.loc. webmaster.vodokanal.loc. (
1
3h
1h
1w
1h )
0.168.192.in-addr.arpa. IN NS ns1.vodokanal.loc.
201.0.168.192.in-addr.arpa. IN PTR ns1.vodokanal.loc.
И раз я выставил все свои конфиги на показ, то пожалуйста, сделайте замечания по конфигам если они имеются (хотя уверен что есть)