System Administration

There is no log about DNS in syslog.log

 
chuanpeng.wang
Frequent Advisor

There is no log about DNS in syslog.log

There are some message in syslog about named as follow:
Jan 26 15:51:47 hadns01b named[20017]: loading configuration from '/etc/named.conf'
Jan 26 15:51:47 hadns01b named[20017]: zone mnc0000.mcc01cc.gprs/IN/Henan: loaded serial 26
Jan 26 15:51:47 hadns01b named[20017]: zone mnc0000.mcc01cc.gprs/IN/Henan: sending notifies (serial 26)
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc01cc.gprs/IN/Henan: loaded serial 26
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc01cc.gprs/IN/Henan: sending notifies (serial 26)
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0000.mcc0460.gprs/IN/Henan: loaded serial 26
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0000.mcc0460.gprs/IN/Henan: sending notifies (serial 26)
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc0460.gprs/IN/Henan: loaded serial 26
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc0460.gprs/IN/Henan: sending notifies (serial 26)
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0000.mcc01cc.gprs/IN/anywhere: loaded serial 26
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0000.mcc01cc.gprs/IN/anywhere: sending notifies (serial 26)
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc01cc.gprs/IN/anywhere: loaded serial 26
Jan 26 15:51:48 hadns01b named[20017]: zone mnc0002.mcc01cc.gprs/IN/anywhere: sending notifies (serial 26)

But now there is nothing about named in syslog.
I have restarted the syslogd and named.

Why is there no log?

The /etc/syslog.conf
# @(#)B11.23_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
1 REPLY 1
chuanpeng.wang
Frequent Advisor

Re: There is no log about DNS in syslog.log

The DNS works well now.
The /etc/named.conf

key "rndc-key" {
algorithm hmac-md5;
secret "Uo5EeBWXGlUtNmlTJ/bqwQ==";
};

options {
directory "/etc/named.data";
//query-source address * port 53;
forwarders {
221.177.1.193;
221.177.77.125;
};
sortlist {
{221.177.152.0/23;
{221.177.152.240/28; };
};
{221.177.154.0/24;
{221.177.154.32/27; };
};

{10.87.104.0/24; {10.20.30.0/24;};};
{10.87.104.64/29; {10.10.0.0/16;};};
{10.87.104.104/29; {1.2.3.0/24;};};
};

recursive-clients 10000;
};

logging {
channel mychannel {
file "/var/adm/querry_log/resolve_dns1.log" versions 31 size 50m;
print-time yes;};
category default {mychannel;};
category lame-servers {null;};
};



//-------------------------------------Henan only--------------------------
view "Henan" {
match-clients {
221.177.152.0/24; //Henan Gn network
221.177.153.0/24;
221.177.154.0/24;
10.96.132.0/24;
10.96.140.0/24;
};

zone "hadns01bnk.ha.mnc000.mcc460.gprs" {
type master;
file "db.dns1";
};

zone "hadns02bnk.ha.mnc000.mcc460.gprs" {
type master;
file "db.dns2";
};

zone "hadns01bnk.ha.mnc002.mcc460.gprs" {
type master;
file "db.dns1.mnc002";
};

zone "hadns02bnk.ha.mnc002.mcc460.gprs" {
type master;
file "db.dns2.mnc002";
};

zone "cmnet.mnc000.mcc460.gprs" {
type master;
file "db.cmnet";
};

zone "cmnet.mnc007.mcc460.gprs" {
type master;
file "db.cmnet";
};

zone "cmwap.mnc000.mcc460.gprs" {
type master;
file "db.cmwap";
};

zone "ha.mnc000.mcc460.gprs" {
type master;
file "db.henan";
};

zone "cmnet.mnc002.mcc460.gprs" {
type master;
file "db.cmnet";
};

zone "cmwap.mnc002.mcc460.gprs" {
type master;
file "db.cmwap";
};

zone "ha.mnc002.mcc460.gprs" {
type master;
file "db.henan";
};

zone "cmwap.mnc007.mcc460.gprs" {
type master;
file "db.cmwap";
};

zone "gbip.gprs" {
type master;
file "db.gbip";
};

zone "test.dns.com" {
type master;
file "db.dns1";
};

zone "test2.dns.com" {
type master;
file "db.test2";
};
//***RAC***//

zone "mnc0000.mcc01cc.gprs" {
type master;
file "db.mnc0000";
forwarders {};
};

zone "mnc0000.mcc0460.gprs" {
type master;
file "db.mnc0000";
forwarders {};
};


//****APRPA****//
zone "27.138.211.IN-ADDR.ARPA"{
type master;
file "db.211.138.27";
};

zone "152.177.221.IN-ADDR.ARPA"{
type master;
file "db.221.177.152";
};

zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "db.127.0.0";
};

zone "104.87.10.IN-ADDR.ARPA"{
type master;
file "db.10.87.104";
};


zone "." {
type hint;
file "db.cache";
};

};

//-----------------------------------Roaming-------------------------------
view "anywhere" {
match-clients {
any;
};

zone "hadns01bnk.ha.mnc000.mcc460.gprs" {
type master;
file "db.dns1";
};
zone "hadns02bnk.ha.mnc000.mcc460.gprs" {
type master;
file "db.dns2";
};

zone "hadns01bnk.ha.mnc002.mcc460.gprs" {
type master;
file "db.dns1.mnc002";
};
zone "hadns02bnk.ha.mnc002.mcc460.gprs" {
type master;
file "db.dns2.mnc002";
};

zone "cmnet.mnc000.mcc460.gprs" {
type master;
file "db.cmnet";
};

zone "cmwap.mnc000.mcc460.gprs" {
type master;
file "db.cmwap";
};

zone "ha.mnc000.mcc460.gprs" {
type master;
file "db.roaming";
};

zone "cmnet.mnc002.mcc460.gprs" {
type master;
file "db.cmnet";
};

zone "cmwap.mnc002.mcc460.gprs" {
type master;
file "db.cmwap";
};

zone "ha.mnc002.mcc460.gprs" {
type master;
file "db.roaming";
};

zone "test.dns.com" {
type master;
file "db.dns2";
};

zone "test2.dns.com" {
type master;
file "db.test2";
};

//***RAC***//

zone "mnc0000.mcc01cc.gprs" {
type master;
file "db.mnc0000";
forwarders {};
};

zone "mnc0000.mcc0460.gprs" {
type master;
file "db.mnc0000";
forwarders {};
};


//****APRPA****//
zone "27.138.211.IN-ADDR.ARPA"{
type master;
file "db.211.138.27";
};

zone "152.177.221.IN-ADDR.ARPA"{
type master;
file "db.221.177.152";
};

zone "104.87.10.IN-ADDR.ARPA"{
type master;
file "db.10.87.104";
};

zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "db.127.0.0";
};

zone "." {
type hint;
file "db.cache";
};
};