Re: [Pdns-users] Pdns python pipe

2012-05-18 Thread dfedorov
Yep, thank you, i've set #/usr/bin/env python, to get right environment - that solves a problem Peter van Dijk-6 wrote: > > Hello, > > On May 10, 2012, at 13:51 , dfedorov wrote: > >> The backend script fails on >> import MySQLdb, >> commenting this string resolves the problem. >> Starting t

Re: [Pdns-users] Pdns python pipe

2012-05-10 Thread José Arthur Benetasso Villanova
Hi. Have you tried this script with user "pdns"? Like Peter said, it can be an env issue. Since pdns does not start a login process, some stuff that PAM or something else set could not be loaded. A "root root rwx--" permission in the wrong place can cause the same problem. If SELinux is act

Re: [Pdns-users] Pdns python pipe

2012-05-10 Thread Peter van Dijk
Hello, On May 10, 2012, at 13:51 , dfedorov wrote: > The backend script fails on > import MySQLdb, > commenting this string resolves the problem. > Starting the script from the command line gives no errors, i've tried to > send messages to it from stdin and got correct responses to stdout. > Any

[Pdns-users] Pdns python pipe

2012-05-10 Thread dfedorov
pdns config allow-axfr-ips=192.168.0.0/20 local-address=192.168.1.134 127.0.0.1 query-local-address=192.168.1.134 cache-ttl=600 daemon=yes default-ttl=3600 disable-axfr=no disable-tcp=no distributor-threads=32 do-ipv6-additional-processing=yes fancy-records=no guardian=no launch=pipe pipe-comman