Hi;
I have some problems with my dns-cache auto refresh so would you like to help me. DNS is configured on Solaris 10 with bind 9. The problem is after a period of time every third week(20 day) I should manually reload named. The procedure I do is reboot the server then cd usr/local/sbin and ./named. So if you have better solution for this please help me.
Here are some information how named is set up. If you need more information about this let me know.
Some friends recommended to try with this:
# svcadm disable svc:/network/dns/server:default
# svcadm enable svc:/network/dns/server:default
or # svcadm restart svc:/network/dns/server:default
but also this did not solve my problem because also i should do that manually , so will be very thankfull if you help me to find the most appropriate solution for this problem.
Thank in advance
Bojan Vangelovski
$ more named.conf(etc)
options {
directory "/var/named"; # Working directory
pid-file "named.pid"; # Pid file in working dir
/*
* 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 askedquestions using port 53, but BIND
* 8.1 uses an unprivileged port by default.
*/
# query-source address * port 53;
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
notify no;
};
$ cd named (VAR)
$ ls
named.ca named.local named.pid
$ more named.ca
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.58.128.30
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
$ more named.local
;
@ IN SOA localhost. root.localhost. (
1997022700 ; #Serial,# A Start of
Authority (SOA) record
28800 ; #Refresh refresh every 8
hours
14400 ; #Retry retry every 4
hours
3600000 ; #Expire 41 day
86400 ) ; #Minimum TTL of 1 day
IN NS localhost. #One or more Name Server (NS) records
identifying master and slave DNS name servers,#One or more Mail Exchange (MX)
records
#Address (A) records for each host in
the zone, #Canonical Name (CNAME) records for each host alias in the zone
1 IN PTR localhost.
$ ls
named.ca named.local named.pid
$ more named.pid
382