named.conf
db.127.0.0
db.cache
To configure the /etc/named.conf file for a simple caching
name server
options {
directory "/var/named";
forwarders { 208.164.186.1; 208.164.186.2; }; >> "" tuk
sloji IP na DNS na providera ti "" <<
forward only;
};
//
// a caching only nameserver config
zone "." in {
type hint;
file "db.cache";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "db.127.0.0";
};
To configure the /var/named/db.127.0.0 $TTL 345600
@ IN SOA localhost. root.localhost. (
00 ; Serial
86400 ; Refresh
7200 ; Retry
2592000 ; Expire
345600 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
Configure the /var/named/db.cache
izpalni tazi komanda
[root@deep]# dig @.aroot-servers.net . ns > db.cache
startirai named
|