Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > by-pkgid > 563affe035311228f138962d4d47d4fd > files > 57

pdns-3.0.1-0.1mdv2010.2.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Using and Compiling PowerDNS FAQ</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PowerDNS manual"
HREF="index.html"><LINK
REL="UP"
TITLE="HOWTO &#38; Frequently Asked Questions"
HREF="faq.html"><LINK
REL="PREVIOUS"
TITLE="HOWTO &#38; Frequently Asked Questions"
HREF="faq.html"><LINK
REL="NEXT"
TITLE="Backend developer HOWTO"
HREF="pdns-devel-faq.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PowerDNS manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="faq.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 18. HOWTO &amp; Frequently Asked Questions</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="pdns-devel-faq.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="PDNS-USERS-FAQ"
>18.2. Using and Compiling PowerDNS FAQ</A
></H1
><P
>	In the course of compiling and using PowerDNS, many questions may arise. Here are some we've heard earlier or questions 
	we expect people may have. Please read this list before mailing us!
      </P
><P
>	If you don't see your question answered here, please check out <A
HREF="http://wiki.powerdns.com/projects/trac/wiki/TodoList"
TARGET="_top"
>	  the Wiki FAQ</A
>, but do note that it is user-editable and not under our constant control.
      </P
><P
>	<P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>Q: I get this entry a lot of times in my log file: Authoritative empty NO ERROR to 1.2.3.4 for 'powerdns.nl' (AAAA)..</DT
><DD
><P
>		As the name implies, this is not an error. It tells you there are questions for a domain which exists in your database, but for
		which no record of the requested type exists. To get rid of this error, add <B
CLASS="COMMAND"
>log-dns-details=off</B
> to your
		configuration.
	      </P
></DD
><DT
>Q: Can I launch multiple backends simultaneously?</DT
><DD
><P
>		A: You can. This might for example be useful to keep an existing BIND configuration around but to store new zones in, say
		MySQL. The syntax to use is 'launch=bind,gmysql'.
	      </P
></DD
><DT
>Q: PowerDNS does not give authoritative answers, how come?</DT
><DD
><P
>		A: This is almost always not the case. An authoritative answer is recognized by the 'AA' bit being set. Many tools
		prominently print the number of Authority records included in an answer, leading users to conclude that the 
		absence or presence of these records indicates the authority of an answer. This is not the case.
	      </P
><P
>		Verily, many misguided country code domain operators have fallen into this trap and demand authority records, even though
		these are fluff and quite often misleading. Invite such operators to look at section 6.2.1 of RFC 1034, which shows a correct
		authoritative answer without authority records. In fact, none of the non-deprecated authoritative answers shown have authority 
		records!
	      </P
><P
>		Sorry for sounding like DJB on this, but we get so many misguided questions about authority..
	      </P
></DD
><DT
>Q: Which backend should I use? There are so many!</DT
><DD
><P
>		A: If you have no external constraints, the Generic MySQL (gmysql) and Generic PostgreSQL (gpgsql) ones are probably the
		most used and complete. By all means do not use the non-generic MySQL backend, which is deprecated and only available for older
		installations.
	      </P
><P
>		The Oracle backend also has happy users, we know of no deployments of the DB2 backend. The BIND backend is pretty capable
		too in fact, but many prefer a relational database.
	      </P
></DD
><DT
>Q: I'm trying to build from SVN but I get lots of weird errors!</DT
><DD
><P
>		A: Read the 'HACKING' file, it lists the build requirements (mostly autoconf, automake, libtool). In many cases, 
		it may be easier to build from the source distribution though. More information for developers
		is available on <A
HREF="http://wiki.powerdns.com"
TARGET="_top"
>the PowerDNS Open Source Community Wiki</A
>.
	      </P
></DD
><DT
>Q: When compiling I get errors about 'sstream' and 'ostringstream', or BITSPERCHAR</DT
><DD
><P
>		A: Your gcc is too old. Versions 2.95.2 and older are not supported. Many distributions have improved gcc 2.95.2 
		with an ostringstream implementation, in which case their 2.95.2 is also supported. 
	      </P
></DD
><DT
>Q: PowerDNS crashes when I install the pdns-static .deb on Debian SID</DT
><DD
><P
>		A: Indeed. Install the .debs that come with Debian or recompile PowerDNS yourself. If not using MySQL, the crashes
		will go away if you remove setuid and setgid statements from the configuration.
	      </P
></DD
><DT
>Q: Why don't my slaves act on notifications and transfer my updated zone?</DT
><DD
><P
>		A: Raise the serial number of your zone. In most backends, this is the first digit of the SOA contents field. If this number
		is lower to equal to that on a slave, it will not consider your zone updated.
	      </P
></DD
><DT
>Q: Master or Slave support is not working, PDNS is not picking up changes</DT
><DD
><P
>		A: The Master/Slave apparatus is off by default. Turn it on by adding a <B
CLASS="COMMAND"
>slave</B
> and/or
		<B
CLASS="COMMAND"
>master</B
> statement to the configuration file. Also, check that the configured backend is master or slave capable.
	      </P
></DD
><DT
>Q: My masters won't allow PowerDNS to access zones as it is using the wrong local IP address</DT
><DD
><P
>		A: Mark Bergsma contributed the query-local-address setting to tell PowerDNS which local IP address to use. 
	      </P
></DD
><DT
>Q: I compiled PowerDNS myself and I see weird problems, especially on SMP</DT
><DD
><P
>		A: There are known issues between gcc &lt;3.2 and PowerDNS on Linux SMP systems. The exact cause is not known but
		moving to our precompiled version always fixes the problems. If you compile yourself, use a recent gcc!
	      </P
></DD
><DT
>Q: I see this a lot: Backend error: Failed to execute mysql_query, perhaps connection died?</DT
><DD
><P
>		A: Check your MySQL timeout, it may be set too low. This can be changed in the <TT
CLASS="FILENAME"
>my.cnf</TT
> file.
	      </P
></DD
><DT
>Q: PowerDNS does not answer queries on all my IP addresses and I've ignored the warning I got about that at startup</DT
><DD
><P
>		A: Please don't ignore what PowerDNS says to you. Furthermore, read <A
HREF="all-settings.html"
>Chapter 15</A
> about the <B
CLASS="COMMAND"
>local-address</B
>
		setting, and use it to specify which IP addresses PowerDNS should listen on.
	      </P
></DD
><DT
>Q: Can I use a MySQL database with the Windows version of PowerDNS?</DT
><DD
><P
>		A: You can. MySQL support is supplied through the ODBC backend, which is compiled into the main binary.
		So if you want to use MySQL you can change the pdns.conf file, which is located in the PowerDNS for Windows directory, to use the 
		correct ODBC data sources.

		If you don't know how to use ODBC with MySQL:
		<P
></P
><UL
><LI
><P
>		      Download MyODBC from <A
HREF="http://www.mysql.com/"
TARGET="_top"
>http://www.mysql.com/</A
>
		    </P
></LI
><LI
><P
>		      Install the MySQL ODBC driver.
		    </P
></LI
></UL
>
		Then you can follow the instructions located in <A
HREF="windows.html"
>Chapter 3</A
>.
		But instead of selecting the Microsoft Access Driver you select the MySQL ODBC Driver and configure it to use your MySQL database.
    
		<DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>For other databases for which an ODBC driver is available, the procedure is the same as this example.</P
></TD
></TR
></TABLE
></DIV
>
	      </P
></DD
></DL
></DIV
>
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="faq.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="pdns-devel-faq.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>HOWTO &amp; Frequently Asked Questions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="faq.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Backend developer HOWTO</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>