Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam,
Mam mały problem, a mianowicie próbuje skonfigurować binda9, by logował wszystko do jednego pliku (a nie do sysloga jak jest w defaulcie).
Konfiguracja logowania w named.conf wyglada następująco:
logging { channel syslog { null; }; channel query_log { file "/var/log/bind.log"; severity info; print-category yes; print-severity no; print-time yes; }; category config { query_log; }; category database { query_log; }; category default { query_log; }; category delegation-only { query_log; }; category dispatch { query_log; }; category dnssec { query_log; }; category edns-disabled { query_log; }; category general { query_log; }; category lame-servers { query_log; }; category network { query_log; }; category notify { query_log; }; category queries { query_log; }; category query-errors { query_log; }; category resolver { query_log; }; category security { query_log; }; category unmatched { query_log; }; category update { query_log; }; category update-security { query_log; }; category xfer-in { query_log; }; category xfer-out { query_log; }; };
Niby wszystko zgodnie z dokumentacją - podałem wszystkie możliwe kategorie, jednak wciąż loguje mi wszystko do sysloga, a w bind.log'u nie mam np tego:
Sep 24 23:48:45 bdc named[3379]: command channel listening on 127.0.0.1#953 Sep 24 23:51:02 bdc named[3426]: starting BIND 9.8.4-rpz2+rl005.12-P1 -u bind Sep 24 23:51:02 bdc named[3426]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=' Sep 24 23:51:02 bdc named[3426]: ---------------------------------------------------- Sep 24 23:51:02 bdc named[3426]: BIND 9 is maintained by Internet Systems Consortium, Sep 24 23:51:02 bdc named[3426]: Inc. (ISC), a non-profit 501(c)(3) public-benefit Sep 24 23:51:02 bdc named[3426]: corporation. Support and training for BIND 9 are Sep 24 23:51:02 bdc named[3426]: available at https://www.isc.org/support Sep 24 23:51:02 bdc named[3426]: ---------------------------------------------------- Sep 24 23:51:02 bdc named[3426]: adjusted limit on open files from 4096 to 1048576 Sep 24 23:51:02 bdc named[3426]: found 8 CPUs, using 8 worker threads Sep 24 23:51:02 bdc named[3426]: using up to 4096 sockets Sep 24 23:51:02 bdc named[3426]: loading configuration from '/etc/bind/named.conf' Sep 24 23:51:02 bdc named[3426]: reading built-in trusted keys from file '/etc/bind/bind.keys' Sep 24 23:51:02 bdc named[3426]: using default UDP/IPv4 port range: [1024, 65535] Sep 24 23:51:02 bdc named[3426]: using default UDP/IPv6 port range: [1024, 65535] Sep 24 23:51:02 bdc named[3426]: no IPv6 interfaces found Sep 24 23:51:02 bdc named[3426]: listening on IPv4 interface eth0, XX.XX.XX.XX#53 Sep 24 23:51:02 bdc named[3426]: generating session key for dynamic DNS Sep 24 23:51:02 bdc named[3426]: sizing zone task pool based on 23 zones Sep 24 23:51:02 bdc named[3426]: set up managed keys zone for view _default, file 'managed-keys.bind'
Dodam, iż system to najnowszy Debian 7 up2date, i bind zainstalowany z paczki.
Z góry dzięki za konstruktywne komentarze i sugestie.
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00136 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.135.194.138' WHERE u.id=1 |
0.00088 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.135.194.138', 1732216863) |
0.00055 | SELECT * FROM punbb_online WHERE logged<1732216563 |
0.00104 | SELECT topic_id FROM punbb_posts WHERE id=276452 |
0.00078 | SELECT id FROM punbb_posts WHERE topic_id=26464 ORDER BY posted |
0.00120 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=26464 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00113 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=26464 ORDER BY p.id LIMIT 0,25 |
0.00132 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26464 |
Total query time: 0.00847 s |