Portál AbcLinuxu, 11. ledna 2026 20:08
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
// forwarders {
// IP adresa;
//
// };
// forward only;
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;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};
zone "domena.sk" IN {
type master;
file "rajnet.zone";
// povolené rozsahy na dotazovanie
allow-query { 192.168.66.0/24; 192.168.68.0/24; 192.168.69.0/24; };
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";
};
zone "69.168.192.in-addr.arpa" IN {
type master;
file "192-168-66.zone";
allow-update { none; };
};
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};
key "rndckey" {
algorithm hmac-md5;
secret "lkwV2OGykQK2rUMEkBMrdQ==";
};
a ešte rndc.conf
key "rndckey" {
algorithm hmac-md5;
secret "lkwV2OGykQK2rUMEkBMrdQ==";
};
options {
default-key "rndckey";
default-server 127.0.0.1;
default-port 953;
};
nepamätám, si ako som generoval ten súbor, bolo to pred tromi rokmi odvtedy len aktualizujem rootdns, verím, že ti pomôže obsah aby ťa napr. aj google donavigoval
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.