finaly named working (YEAH, than everyone)
but i got 2 questions.
1]
I start looking around, and saw, where is my named.log (or whatever it should be atm)
so, i made a nice logging entry in named.conf.
Code:
logging {
//
channel named_log {
file "/var/log/named/named.log" versions 3 size 5m;
severity info;
print-severity yes;
print-time yes;
print-category yes;
};
category default {
named_log;
};
};
also entered rndc stuff
took me a while ,but it works, i can start stop named.
made in options this entry
Code:
dump-file "/var/log/named/named.dump";
statistics-file "/var/log/named/named.stats";
zone-statistics yes;
so, looks nice.
rndc stuff
Code:
controls {
inet 127.0.0.1 allow { localhost; }
keys { <my key name>; };
};
key "<my key name>" {
algorithm hmac-md5;
secret "<sssssh xD>";
};
how ever,after manual stopping named.
en started over rndc start, all starts up.
but.
no log files!!!
/var/log/named has 644 named named as owner stuff
did a touch in it for named.log named.dump named.stats
right set as 644 named named
did a rndc reconfig
didnt got a error (good xD)
but, log files where unchanged ,still 0 bytes.
so, i tought, lets do rndc stats.
rndc: 'stats' failed: file not found
umh, file is correct, so wtf ?
so, i tried rndc reconfig /var/named/etc/named.conf
and in messages gave me this output.
isc_log_open `var/log/named/named.log ` failed: file not found.
so, now i am confussed...
can some1 tell me the correct read/write permissions for directory and files.
now my 2nd question
i guess this is more interesting.
2]
rndc is a control server as far i understood.
so my question..
named is setup do serve local dns stuff for my lan machines. (www/ftp/mail/dns)
as far i can see, works as a charm.
but what i want to know, can rndc write back the dns stuff it has in memory to a file, and reload it when need to boot named the hard way, or after a machine reboot.
if yes, how do i handle this ???
personaly, i think..
named.conf (example entry)
Code:
// Whatever zones
zone "saved.zones" {
type master;
file "/master/saved.zones";
allow-transfer { clients;};
allow-query { any; };
};
where saved.zones the dns stuff in memory is, and readed again when named comes back again.
so that i wount need to fetch all the stuff again.
thnxs..