Caching server gets its information from another server ( Master DNS server ) in response to a host query and then cache this information locally, it saves cached data until the time period "time-to-live" in named.conf file expire. When a caching only DNS server starts for the first time, it has't cached informaton , the caching only DNS server collects information as it send and recive quires.
Caching only Characteristic
1- A caching-only server is not authoritative for any domain.
2- Caching-only DNS servers do not host zones.
3- caching-only DNS servers are excluded from the zone transfer process, and therefore do not generate network traffic from zone transfers.
1- A caching-only server is not authoritative for any domain.
2- Caching-only DNS servers do not host zones.
3- caching-only DNS servers are excluded from the zone transfer process, and therefore do not generate network traffic from zone transfers.
Configure Caching only DNS server
before configure Caching-only DNS server yu have to configure Master DNS server Follow this link to learn how to :-
the files that are needed to start Caching-only DNS server are :-
1- named.conf
2- root server file
svcadm disable dns/server
➋ create the DNS confiuration file "named.conf"
touch /etc/named.conf
➌ edit the "named.conf" file
vi /etc/named.conf
The
file will be opened for editing , if you don't know how to use VI
editor follow this link to be more familiar with VI Editor:- UNIX VI editor
➍ add the following lines to the "named.conf" file.
options {
"/var/named";
};
zone "." {
type hint;
file "db.cache";
};
mkdir /var/named
cd /var/named
↪ Download root servers file
/usr/sfw/bin/wget ftp://ftp.rs.internic.net/domain/named.root
↪ rename named.root to db.cache
mv named.root db.cache
0 comments:
Post a Comment