>покажи мне то что я сам не знаю но покажи.
>кофиги в студию, телепаты в отпуске.
named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// If you are just adding zones, please do that in /var/lib/bind/etc/local.conf
include "/etc/options.conf";
include "/etc/rndc.conf";
include "/etc/local.conf";
-------------------------------------------------------------
options.conf
/* Turn on enforcment of delegation-only in TLDs and root zones with
* an optional exclude list.
* Note some TLDs are NOT delegation only (e.g. "DE", "LV", "US" and "MUSEUM").
*/
root-delegation-only exclude { "de"; "lv"; "us"; "museum"; };
/*
* For localhost configuration, uncomment the listen-on directive below.
*/
// listen-on { 127.0.0.1; };
/*
* If forward directive set to "only", the server will only query
* the forwarders.
*/
// forward only;
// forwarders { };
/*
* Specifies which hosts are allowed to ask ordinary questions.
*/
// allow-query { localnets; };
/*
* Specifies which hosts are allowed to make recursive queries through this server.
* If not specified, the default is to allow recursive queries from all hosts.
* Note that disallowing recursive queries for a host does not prevent the host
* from retrieving data that is already in the server's cache.
*/
// allow-recursion { localnets; };
/*
* Sets the maximum time for which the server will cache ordinary (positive)
* answers. The default is one week (7 days).
*/
// max-cache-ttl 86400;
};
---------------------------------------------------------
rndc.conf
controls {
inet 127.0.0.1 port 953 allow { localhost; } keys { "rndc-key"; };
};
include "/etc/rndc.key";
-----------------------------------------------------------
local.conf
include "/etc/rfc1912.conf";
// Consider adding the 1918 zones here, if they are not used in your organization.
// include "/etc/rfc1918.conf";
// Add other zones here
zone "10.10.10.in-addr.arpa" {
type master;
file "10.10.10.in-addr.arpa";
allow-update { none; };
};
zone "zavod.lok" {
type master;
file "zavod.lok";
allow-update { none; };
};
---------------------------------------------------------
rfc1912.conf
// Be authoritative for the localhost forward and reverse zones,
// and for broadcast zones as per RFC 1912.
zone "localhost" {
type master;
file "localhost";
allow-update { none; };
};
zone "localdomain" {
type master;
file "localdomain";
allow-update { none; };
};
zone "127.in-addr.arpa" {
type master;
file "127.in-addr.arpa";
allow-update { none; };
};
zone "0.in-addr.arpa" {
type master;
file "empty";
allow-update { none; };
};
zone "255.in-addr.arpa" {
type master;
file "empty";
allow-update { none; };
};