<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>logging | /var/logs/paulooi.log</title>
	<atom:link href="https://logs.paulooi.com/tag/logging/feed" rel="self" type="application/rss+xml" />
	<link>https://logs.paulooi.com</link>
	<description>Systems Admin, Web Development and etc</description>
	<lastBuildDate>Wed, 12 May 2010 13:28:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Turn on DNS Query Log on Bind</title>
		<link>https://logs.paulooi.com/turn-on-dns-query-log-on-bind.php</link>
					<comments>https://logs.paulooi.com/turn-on-dns-query-log-on-bind.php#comments</comments>
		
		<dc:creator><![CDATA[Paul Ooi]]></dc:creator>
		<pubDate>Wed, 12 May 2010 13:28:50 +0000</pubDate>
				<category><![CDATA[Systems]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[logging]]></category>
		<guid isPermaLink="false">http://systems.takizo.com/?p=968</guid>

					<description><![CDATA[<p>You are running a recursive DNS server and would like to find out the statistic of your user browser behavior (Whether they browse Facebook or Google?). Turn on DNS query logs will allow you to find out the statistic. To...</p>
The post <a href="https://logs.paulooi.com/turn-on-dns-query-log-on-bind.php">Turn on DNS Query Log on Bind</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></description>
										<content:encoded><![CDATA[<p>You are running a recursive DNS server and would like to find out the statistic of your user browser behavior (Whether they browse Facebook or Google?). Turn on DNS query logs will allow you to find out the statistic. To turn on DNS query log in Bind, configure lines below on named.conf </p>
<pre>
<code>
logging{
        channel query_logging {
                file "/var/log/query.log" versions 3 size 10m;
                severity debug 3;
                print-time yes;
                print-severity yes;
                print-category yes;
        };

        category queries {
                query_logging;
        };
};
</code>
</pre>
<p>To turn on query logging while DNS service is running; you need to to <strong>rndc querylog</strong> and check the status with <strong>rndc status</strong></p>
<pre>
<code>
shell> rndc querylog
shell> rndc status 
version: 9.x.x
number of zones: 1200
debug level: 3
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
</code>
</pre>
<p><strong>query logging is ON</strong> indicates that DNS query logging is activated. </p>The post <a href="https://logs.paulooi.com/turn-on-dns-query-log-on-bind.php">Turn on DNS Query Log on Bind</a> first appeared on <a href="https://logs.paulooi.com">/var/logs/paulooi.log</a>.]]></content:encoded>
					
					<wfw:commentRss>https://logs.paulooi.com/turn-on-dns-query-log-on-bind.php/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
