<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;"><span style=" font-style:italic;">> Hi Everyone,</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> Im trying to implement a powerdns setup with mysql and geo backends for geo</span><br>
<span style=" font-style:italic;">> redirection. unfortunately, i have run into a small problem, that i cant</span><br>
<span style=" font-style:italic;">> seem to figure out.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> i've setup the mysql and geo backends correctly, however, when starting up</span><br>
<span style=" font-style:italic;">> pdns, i get the following error in the syslog:</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> "TCP server is unable to launch backends - will try again when questions</span><br>
<span style=" font-style:italic;">> come in: stat() failed, or</span><br>
<span style=" font-style:italic;">> /etc/powerdns/pdns.d/zones/zz.countries.nerd.dk.rbldnsd is no regular</span><br>
<span style=" font-style:italic;">> file."</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> i have tried rsyncing the country files from scratch, and im still getting</span><br>
<span style=" font-style:italic;">> the same error. i can confirm that the file is there, and that dir paths</span><br>
<span style=" font-style:italic;">> are intact. i can also confirm that the files have 777 chmod permissions,</span><br>
<span style=" font-style:italic;">> and that i can actually vim the file that pdns cannot find, there is actual</span><br>
<span style=" font-style:italic;">> data in the file which is readable.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> if i remove geo from the launch option in the pdns.conf file, and comment</span><br>
<span style=" font-style:italic;">> out geo-* options, pdns-server runs perfectly with mysql.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> i am using debian 4.0etch9 for the setup.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> the mysql backends are working perfectly, im just having a problem with the</span><br>
<span style=" font-style:italic;">> geo backend at the moment.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> any advice or help is very much appreciated.</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> thanks</span><br>
<span style=" font-style:italic;">></span><br>
<span style=" font-style:italic;">> kalpesh.</span><br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hello again,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>i seem to have found the solution to my problem, and i am now seeing this in the syslog (which is correct):<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>"[geobackend] Parsing IP map zonefile<br>
May 20 11:39:17 ns1 pdns[2487]: [geobackend] Finished parsing IP map zonefile: added 93357 prefixes, storedin 231491 nodes using 2777892 bytes of memory<br>
May 20 11:39:17 ns1 pdns[2487]: [geobackend] Parsing director map /etc/geo-maps/www<br>
May 20 11:39:17 ns1 pdns[2487]: [geobackend] Finished parsing 1 director map files, 0 failures"<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>what i did was remove the zone and geo-map files from the pdns.d dir, and place them recursively in the /etc dir instead. now everything seems to be fine.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>next step is to configure the zone RR's. :)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>cheers<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>kalpesh.</p></body></html>