BIND查询日志格式分析
Nov 21 12:34:41 dns named[780]: [ID 866145 local0.info] client 1.2.3.4#32773: query: yikes.com IN MX -E
23-Apr-2010 15:21:15.316 queries: client 192.168.146.18#55771: query: 2030m.com IN A +ED (192.168.146.149)
23-Apr-2010 15:21:15.348 queries: client 192.168.146.18#47779: query: 20304050.cn IN A +ED (192.168.146.149)
23-Apr-2010 15:21:15.348 queries: client 192.168.146.18#21651: query: 2032.cc IN A +ED (192.168.146.149)
23-Apr-2010 15:21:15.348 queries: client 192.168.146.30#33151: query: 2mysite.net IN A + (192.168.146.150)
23-Apr-2010 15:21:15.351 queries: client 192.168.146.30#39878: query: 2mysite.net IN A +T (192.168.146.150)
The entries should be clear enough: the date and time the query was received; the source IP address and port number used by the client;and the name, class and qtype. The final field shows if the query had the rd (recursion desired) bit set (+) or not (-) -- typically showing if the query came from a name server or stub resolver -- or if EDNS0 (E) was used.
All of the text up to the record type (MX in this case) made sense, but I had no idea what the “-E” meant. Being the curious person I am, I dug through the BIND source code to locate the logging code. After a couple of find statements, I was able to locate the logging code in query.c:
ns_client_log(client, NS_LOGCATEGORY_QUERIES, NS_LOGMODULE_QUERY,
level, "query: %s %s %s %s%s%s", namebuf, classname,
typename, WANTRECURSION(client) ? "+" : "-",
(client->signer != NULL) ? "S": "",
(client->opt != NULL) ? "E" : "");
So a “+” or “-” in a query log entry indicates that a client requested recursion, and the “E” means that the query requested EDNS0. I would like to thank Knobee for his feedback on this post.
本日志由 flyinweb 于 2010-04-23 16:09:26 发表,目前已经被浏览 4086 次,评论 0 次;
作者添加了以下标签: bind logfile format;
引用通告:http://www.517sou.net/Article/433/Trackback.ashx
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱
http://www.2mysite.net/scriptencoder/screnc.asp 站长你好,看
你好,我发现一个问题,就是从mysqld2同步过来的数据,在mysqld1的
晕,我说是怎么回事情,原来我和你一样,忘记设置了活动分区