interesting named isue again, cant write log files.....and a weard rndc thing
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 { 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"; rndc stuff Code:
controls { 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 so that i wount need to fetch all the stuff again. thnxs.. |
Hi,
1. Quote:
If that's the case, then the log files you look for (as well as the stats and dump files) are located under /var/named/var/log/named The directory should be owned by the user:group named run as. If they don't exist, they should be created so you don't need to touch them. 2. Quote:
Regards |
on 1]
when removing log section, rndc makes file in var/named/tmp when removing // and editoring paths to /var/named/var/log/named/ and editing rights, same error. saying could not open dumb files ///// file not found. dunno how to chech if named is chrooted... 2] bummer.. i readed somewhere that it was posible with slave option, but we see, loggins goes 1st. --edit- thought i was smart xD changed all log directives to /var/named/tmp but, still error. |
Run
Code:
ps -ef|grep named |
hmm..
# ps -ef | grep named ps: unknown option -- f usage: ps [-aCcehjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o fmt] [-p pid] [-t tty] [-U username] [-W swap] # but a ps aux gives this # ps aux | grep named named 11993 0.0 3.0 14424 15532 ?? S 7:40PM 0:02.98 /usr/sbin/named root 25421 0.0 0.2 1996 988 ?? Is 7:40PM 0:00.01 named: [priv] (named) # guess openBSD cant do -ef |
Quote:
Anyway, looks like you're running named not chrooted, which is strange, as bind in openbsd is chrooted by default. Also there is no "-u named" in the ps output You better have a look at this howto to see how to configure bind correctly. Regards |
bind is running as sharmed..
but the logging is the only i NEVER could get working.. |
looks like the way i did the setup..
|
Quote:
|
fstat | named
dont see log files. |
Quote:
Code:
fstat | grep named |
typo my friend, i ment | grep named xD
wasquit late at that time. |
What's the "directory" option in named.conf?
You can just specify filenames for the log file (stats and dumb filenames are by default named.stats and named_dump.db, so you can omit them completely) and see it they are created and the directory configured above. |
directory option give a error in messages.
|
Quote:
|
All times are GMT -5. The time now is 12:36 AM. |