猿问

bind dns named.conf 的logging配置完后没有出现日志

options

{

// Put files that named is allowed to write in the data/ directory:

directory "/var/named"; // "Working" directory

dump-file "data/cache_dump.db";

        statistics-file "data/named_stats.txt";

        memstatistics-file "data/named_mem_stats.txt";



//listen-on port 53 { any; };



//listen-on-v6 port 53 { any; };

// listen-on-v6 port 53 { ::1; };

};

logging 

{

/*      If you want to enable debugging, eg. using the 'rndc trace' command,

 *      named will try to write the 'named.run' file in the $directory (/var/named).

 *      By default, SELinux policy does not allow named to modify the /var/named directory,

 *      so put the default debug log file in data/ :

 */

        channel my_file {

                file "data/log.msgs";

                severity info;

print-category yes;

print-severity yes;

        };

category queries { 

my_file; 

};

};

zone "wmy.org" IN {

type master;

file "wmy.org.zone";

};


zone "153.29.172.in-addr.arpa" IN {

        type master;

        file "153.29.172.db";

};

/*zone "wmy.orgg" IN {

        type slave;

        masters { 172.29.153.176; };

        file    "slaves/wmy.org.zone";

};*/


tanhouyusheng
浏览 3483回答 2
2回答

tanhouyusheng

那就是路径没写明白,一般只要配置的没问题,肯定能找到日志的
随时随地看视频慕课网APP
我要回答