<?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>Debian Tutorials &#187; powerdns</title>
	<atom:link href="http://www.debiantutorials.com/tag/powerdns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 18 Aug 2010 00:35:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing PowerDNS Recursor</title>
		<link>http://www.debiantutorials.com/installing-powerdns-recursor/</link>
		<comments>http://www.debiantutorials.com/installing-powerdns-recursor/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 07:01:21 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[powerdns]]></category>
		<category><![CDATA[recursor]]></category>
		<category><![CDATA[resolving DNS]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=317</guid>
		<description><![CDATA[PowerDNS Recursor is a resolving DNS server, that runs as a separate process. The authoritative pdns_server can be configured to proxy  recursive queries to the recursor, and optionally overlay authoritative zone data.
The Recursor is used by several of the largest Internet providers of the world, including AOL, Shaw Cable and Neuf Cegetel.
1. Install the [...]]]></description>
			<content:encoded><![CDATA[<p>PowerDNS Recursor is a resolving DNS server, that runs as a separate process. The authoritative pdns_server can be configured to proxy  recursive queries to the recursor, and optionally overlay authoritative zone data.</p>
<p>The Recursor is used by several of the largest Internet providers of the world, including AOL, Shaw Cable and Neuf Cegetel.</p>
<p>1. Install the pdns-recursor package</p>
<p><code>apt-get install pdns-recursor<br />
</code><span id="more-317"></span></p>
<p>2. Configure the server to listen to all interfaces and allow queries from the local network (pico /etc/powerdns/recursor.conf)</p>
<p><code>allow-from=192.168.1.0/24<br />
local-address=0.0.0.0<br />
</code></p>
<p><em>Replace 192.168.1.0/24 with your local network or the network allowed to query the resolving NS server.</em></p>
<p>3. Restart the DNS server</p>
<p><code>/etc/init.d/pdns-recursor restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-powerdns-recursor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PowerDNS on etch/lenny</title>
		<link>http://www.debiantutorials.com/installing-powerdns-on-eth-lenny/</link>
		<comments>http://www.debiantutorials.com/installing-powerdns-on-eth-lenny/#comments</comments>
		<pubDate>Sat, 16 May 2009 23:15:18 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[powerdns]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/?p=45</guid>
		<description><![CDATA[The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.
This tutorial has been tested and is working on Debian etch and lenny
1. Install the PowerDNS server and MySql backend using apt
apt-get install pdns-server [...]]]></description>
			<content:encoded><![CDATA[<p>The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.</p>
<p>This tutorial has been tested and is working on Debian etch and lenny</p>
<p>1. Install the PowerDNS server and MySql backend using apt</p>
<p><code>apt-get install pdns-server pdns-backend-mysql<br />
</code><span id="more-45"></span></p>
<p>2. Create a new database (or use existing) and execute the following SQL queries to create the PowerDNS table structure:</p>
<p><code>create table domains (<br />
id		 INT auto_increment,<br />
name		 VARCHAR(255) NOT NULL,<br />
master		 VARCHAR(128) DEFAULT NULL,<br />
last_check	 INT DEFAULT NULL,<br />
type		 VARCHAR(6) NOT NULL,<br />
notified_serial INT DEFAULT NULL,<br />
account         VARCHAR(40) DEFAULT NULL,<br />
primary key (id)<br />
)type=InnoDB;<br />
&nbsp;<br />
CREATE UNIQUE INDEX name_index ON domains(name);<br />
&nbsp;<br />
CREATE TABLE records (<br />
id              INT auto_increment,<br />
domain_id       INT DEFAULT NULL,<br />
name            VARCHAR(255) DEFAULT NULL,<br />
type            VARCHAR(6) DEFAULT NULL,<br />
content         VARCHAR(255) DEFAULT NULL,<br />
ttl             INT DEFAULT NULL,<br />
prio            INT DEFAULT NULL,<br />
change_date     INT DEFAULT NULL,<br />
primary key(id)<br />
)type=InnoDB;<br />
&nbsp;<br />
CREATE INDEX rec_name_index ON records(name);<br />
CREATE INDEX nametype_index ON records(name,type);<br />
CREATE INDEX domain_id ON records(domain_id);<br />
&nbsp;<br />
create table supermasters (<br />
ip VARCHAR(25) NOT NULL,<br />
nameserver VARCHAR(255) NOT NULL,<br />
account VARCHAR(40) DEFAULT NULL<br />
);<br />
</code></p>
<p>3. Configure PowerDNS to use the MySql backend by adding this line into the configuration file (pico /etc/powerdns/pdns.conf)</p>
<p><code>launch=gmysql<br />
</code></p>
<p>4. Configure MySql login information for the PowerDNS server that can read from the tables you created earlier by adding lines similar to these (pico /etc/powerdns/pdns.d/pdns.local)</p>
<p><code>gmysql-host=127.0.0.1<br />
gmysql-user=pdns<br />
gmysql-password=password<br />
gmysql-dbname=pdns<br />
</code></p>
<p><em>Replace the username, password and dbname with a valid login information and database name.</em></p>
<p>5. Restart PowerDNS</p>
<p><code>/etc/init.d/pdns restart<br />
</code></p>
<p>Now you should have a fully functional PowerDNS server installed. To manage the database (adding zones and records), consider using the <a href="http://www.poweradmin.org">Poweradmin</a> web-based administration tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-powerdns-on-eth-lenny/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring PowerDNS with MRTG</title>
		<link>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/</link>
		<comments>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[powerdns]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/monitoring-powerdns-with-mrtg/</guid>
		<description><![CDATA[Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file and you're good to go!
apt-get install libsnmp-session-perl mrtg

Add this to a config file, for example /etc/mrtg.cfg (pico /etc/mrtg.cfg)
Interval: 5
WorkDir: /var/www/mrtg
WriteExpires: yes
Options[_]: growright,nopercent
XSize[_]: 600
&#160;
Target[udp-queries]: `/etc/init.d/pdns mrtg udp-queries udp-answers`
Options[udp-queries]: growright,nopercent,perminute
MaxBytes[udp-queries]: 600000
AbsMax[udp-queries]: 600000
Title[udp-queries]: Queries per minute
PageTop[udp-queries]: &#60;h1&#62;Queries per minute&#60;/h1&#62;
WithPeak[udp-queries]: ymwd
YLegend[udp-queries]: queries/minute
ShortLegend[udp-queries]: q/m
LegendI[udp-queries]: [...]]]></description>
			<content:encoded><![CDATA[<p>Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file and you're good to go!</p>
<p><code>apt-get install libsnmp-session-perl mrtg<br />
</code></p>
<p><span id="more-16"></span>Add this to a config file, for example /etc/mrtg.cfg (pico /etc/mrtg.cfg)</p>
<p><code>Interval: 5<br />
WorkDir: /var/www/mrtg<br />
WriteExpires: yes<br />
Options[_]: growright,nopercent<br />
XSize[_]: 600<br />
&nbsp;<br />
Target[udp-queries]: `/etc/init.d/pdns mrtg udp-queries udp-answers`<br />
Options[udp-queries]: growright,nopercent,perminute<br />
MaxBytes[udp-queries]: 600000<br />
AbsMax[udp-queries]: 600000<br />
Title[udp-queries]: Queries per minute<br />
PageTop[udp-queries]: &lt;h1&gt;Queries per minute&lt;/h1&gt;<br />
WithPeak[udp-queries]: ymwd<br />
YLegend[udp-queries]: queries/minute<br />
ShortLegend[udp-queries]: q/m<br />
LegendI[udp-queries]: udp-questions<br />
LegendO[udp-queries]: udp-answers<br />
&nbsp;<br />
Target[perc-failed]: `/etc/init.d/pdns mrtg udp-queries udp-answers`<br />
Options[perc-failed]: growright,dorelpercent,perminute<br />
MaxBytes[perc-failed]: 600000<br />
AbsMax[perc-failed]: 600000<br />
Title[perc-failed]: Queries per minute, with percentage success<br />
PageTop[perc-failed]: &lt;h1&gt;Queries per minute, with percentage success&lt;/h1&gt;<br />
WithPeak[perc-failed]: ymwd<br />
YLegend[perc-failed]: queries/minute<br />
ShortLegend[perc-failed]: q/m<br />
LegendI[perc-failed]: udp-questions<br />
LegendO[perc-failed]: udp-answers<br />
&nbsp;<br />
Target[packetcache-rate]: `/etc/init.d/pdns mrtg packetcache-hit udp-queries`<br />
Options[packetcache-rate]: growright,dorelpercent,perminute<br />
Title[packetcache-rate]: packetcache hitrate<br />
MaxBytes[packetcache-rate]: 600000<br />
AbsMax[packetcache-rate]: 600000<br />
PageTop[packetcache-rate]: &lt;h1&gt;packetcache hitrate&lt;/h1&gt;<br />
WithPeak[packetcache-rate]: ymwd<br />
YLegend[packetcache-rate]: queries/minute<br />
ShortLegend[packetcache-rate]: q/m<br />
LegendO[packetcache-rate]: total<br />
LegendI[packetcache-rate]: hit<br />
&nbsp;<br />
Target[packetcache-missrate]: `/etc/init.d/pdns mrtg packetcache-miss udp-queries`<br />
Options[packetcache-missrate]: growright,dorelpercent,perminute<br />
Title[packetcache-missrate]: packetcache MISSrate<br />
MaxBytes[packetcache-missrate]: 600000<br />
AbsMax[packetcache-missrate]: 600000<br />
PageTop[packetcache-missrate]: &lt;h1&gt;packetcache MISSrate&lt;/h1&gt;<br />
WithPeak[packetcache-missrate]: ymwd<br />
YLegend[packetcache-missrate]: queries/minute<br />
ShortLegend[packetcache-missrate]: q/m<br />
LegendO[packetcache-missrate]: total<br />
LegendI[packetcache-missrate]: MISS<br />
&nbsp;<br />
Target[latency]: `/etc/init.d/pdns mrtg latency`<br />
Options[latency]: growright,nopercent,gauge<br />
MaxBytes[latency]: 600000<br />
AbsMax[latency]: 600000<br />
Title[latency]: Query/answer latency<br />
PageTop[latency]: &lt;h1&gt;Query/answer latency&lt;/h1&gt;<br />
WithPeak[latency]: ymwd<br />
YLegend[latency]: usec<br />
ShortLegend[latency]: usec<br />
LegendO[latency]: latency<br />
LegendI[latency]: latency<br />
&nbsp;<br />
Target[recursing]: `/etc/init.d/pdns mrtg recursing-questions recursing-answers`<br />
Options[recursing]: growright,nopercent,gauge<br />
MaxBytes[recursing]: 600000<br />
AbsMax[recursing]: 600000<br />
Title[recursing]: Recursive questions/answers<br />
PageTop[recursing]: &lt;h1&gt;Recursing questions/answers&lt;/h1&gt;<br />
WithPeak[recursing]: ymwd<br />
YLegend[recursing]: queries/minute<br />
ShortLegend[recursing]: q/m<br />
LegendO[recursing]: recursing-questions<br />
LegendI[recursing]: recursing-answers<br />
</code></p>
<p>Make mrtg create a new report every 5 minutes by adding the following line in crontab (type crontab -e):</p>
<p><code>0,5,10,15,20,25,30,35,40,45,50,55 * * * * env LANG=C /usr/bin/mrtg /etc/mrtg.cfg<br />
</code></p>
<p>Create a summary page showing all graphs:</p>
<p><code>indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html<br />
</code></p>
<p>If using the default mrtg/apache configuration you can access the graphs here: http://yourserver/mrtg</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/monitoring-powerdns-with-mrtg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
