Re: [Pdns-users] mongodb backend

2013-06-01 Thread fredrik danerklint
The problem is that both pdns and mongodb exports same functions with different implementations: This is the same problem that I have with the luabackend. Since PowerDNS links lua directly into to executable, you need to run the same lua version in the luabackend aswell. When I was trying to f

Re: [Pdns-users] mongodb backend

2013-05-26 Thread fredrik danerklint
I'm the author for the mongodb backend. It was me who told Peter and Bert to delete the backend from PowerDNS. The reason for this was simple. When the client of Mongodb (libmongoclient.a) initialize, it will run through a number of internal test to see that everything is ok. One of those test

Re: [Pdns-users] PowerDNS backend

2013-02-05 Thread fredrik danerklint
one silly question. even I need to write my own backend, I still need to use pipebackend option, rite? Or you can use the Luabackend, which was written precisely to solve issues like yours. -- //fredan ___ Pdns-users mailing list Pdns-users@mailman.

Re: [Pdns-users] The Luabackend

2013-01-13 Thread fredrik danerklint
, 2013, at 19:39 , fredrik danerklint wrote: Can now be found at https://github.com/fredan/luabackend Would you like the docs and/or README on our end to say something about that? Kind regards, -- //fredan ___ Pdns-users mailing list Pdns-users

Re: [Pdns-users] The Luabackend

2013-01-11 Thread fredrik danerklint
Yes, that would be nice! 2013-01-11 08:42, Peter van Dijk skrev: Hello Fredrik, On Jan 10, 2013, at 19:39 , fredrik danerklint wrote: Can now be found at https://github.com/fredan/luabackend Would you like the docs and/or README on our end to say something about that? Kind regards

[Pdns-users] The Luabackend

2013-01-10 Thread fredrik danerklint
Can now be found at https://github.com/fredan/luabackend -- //fredan ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: [Pdns-users] Starting recursor on freebsd 8.2

2012-01-15 Thread fredrik danerklint
sorry about the noise. didn't think clear enough to realize that I already using port 53 on that machine! nothing to see here! move along! 2012-01-15 17:46, fredrik danerklint skrev: Trying to start recursor on FreeBSD 8.2 Please tell me what I have missed in the configuration. # netsta

[Pdns-users] Starting recursor on freebsd 8.2

2012-01-15 Thread fredrik danerklint
Trying to start recursor on FreeBSD 8.2 Please tell me what I have missed in the configuration. # netstat -ln -p udp # /usr/local/etc/rc.d/pdns-recursor start Starting pdns_recursor. Jan 15 17:41:40 PowerDNS recursor 3.3 (C) 2001-2010 PowerDNS.COM BV (Jan 9 2011, 05:22:37, gcc 4.2.1 20070719

[Pdns-users] Update of MongoDB backend

2011-09-16 Thread fredrik danerklint
Hi! This is an update to make the function getUpdatedMasters a little faster since it now use server-side processing instead of client processing. (and also the performance increase for slave discussed earlier - remember: there is no slave functionality in the backend - yet.). For reference,

Re: [Pdns-users] [Patch] SLAVE refresh performance

2011-09-16 Thread fredrik danerklint
mplement the improved behavior? It seems this > patch only extends the setFresh() function to accept the refresh value, > but do not use it. > > klaus > > On 15.09.2011 16:41, fredrik danerklint wrote: > > He

Re: [Pdns-users] [Patch] SLAVE refresh performance

2011-09-15 Thread fredrik danerklint
Here is a patch for the luabackend. -- //fredan Index: test/powerdns-luabackend.lua === --- test/powerdns-luabackend.lua (revision 2261) +++ test/powerdns-luabackend.lua (arbetskopia) @@ -32,8 +32,10 @@ records["www.test.com"] = {

Re: [Pdns-users] The Lua Backend for PowerDNS

2011-06-05 Thread fredrik danerklint
> > Fun news (I hope for all of you out there)! > > It is to me ;-) My love affair with Lua is not ending yet! Me too. I probably have a few other things that I can see that benefits of Lua. > I've merged this contribution in 2208, and added it to the default deb and > rpm builds. To be fair, t

[Pdns-users] The Lua Backend for PowerDNS

2011-06-05 Thread fredrik danerklint
Hi everybody! Fun news (I hope for all of you out there)! The Luabackend has been sent to Bert and waiting to be included in the source code of PowerDNS. The backend has the functionality for dnssec support too! Please keep in mind that the backend itself cannot be used directly right now sinc

Re: [Pdns-users] MongoDB Backend merged Re: Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-05-29 Thread fredrik danerklint
> So, please, be so kind as to answer one more question: When PDNS queries > backends for updated serials, does it provide them with a list of the > 'notified_serial's (as per your explanation in a previous post of > yours), that is, a list of all serials which it has previously used in > notificat

Re: [Pdns-users] MongoDB Backend merged Re: Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-05-26 Thread fredrik danerklint
> On 26/5/2011 3:44 μμ, fredrik danerklint wrote: > > Nick, > > > > To answer all of your questions, please take a look at the source file > > 'communicator.cc'. At the end of that file there is a function called > > "void CommunicatorClass::mainlo

Re: [Pdns-users] MongoDB Backend merged Re: Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-05-26 Thread fredrik danerklint
onds (parameter taken from the pdns.conf file). I assume that this function is running in a seperate thread. This is how PowerDNS knows when to send a update to other nameservers. > On 25/5/2011 11:25 μμ, fredrik danerklint wrote: > > PowerDNS ask each backend for domains which has a different

Re: [Pdns-users] MongoDB Backend merged Re: Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-05-25 Thread fredrik danerklint
Nikolas, PowerDNS ask each backend for domains which has a different 'notified_serial' than 'serial' for the domain. This function is called getUpdatedMasters(vector* domains) and exists in the source file 'master.cc' for MongoDB backend. What PowerDNS except after a call to this function is

Re: [Pdns-users] Performance of LUABackend

2011-05-12 Thread fredrik danerklint
I think I have found the problem with the threads problem. I can now run with more than one thread in PowerDNS. However: One thread: Queries per second: 23390.092203 qps Latency: Min: 0.36 s; Max: 0.020715 s; Avg: 0.43 s; StdDev: 0.27 Two threads: Queries per second: 14893.5206

Re: [Pdns-users] Performance of LUABackend

2011-05-12 Thread fredrik danerklint
> > Not yet since it only can handle the "minimal" (ie: no slave, master or > > dnssec) or would you like to have this at this stage with just the bare > > "minimal" ? If so, no problem. I do need some help to be able to > > understand what cause it to crash if there is more than one thread in > >

Re: [Pdns-users] Performance of LUABackend

2011-05-12 Thread fredrik danerklint
> > This is just a test to see how fast it can be with only two records in lua: > So you have a Lua backend? ;-) Can you share? Not yet since it only can handle the "minimal" (ie: no slave, master or dnssec) or would you like to have this at this stage with just the bare "minimal" ? If so, no p

[Pdns-users] Performance of LUABackend

2011-05-12 Thread fredrik danerklint
This is just a test to see how fast it can be with only two records in lua: records["host.test.com"] = {domain_id = 11, name = "host.test.com", type = "A", ttl = 120, content = "10.11.12.13"} records["www.test.com"] = {domain_id = 11, name = "www.test.com", type = "CNAME", ttl = 120, content = "

[Pdns-users] Performance of MongoDBBackend

2011-05-11 Thread fredrik danerklint
All test performed on the same machine, which has 16GB of ram and 6 core amd 3,2 Ghz processor. The database is on a raid5 on 6 sata disks. The database has 16M records for the example.com zone and there is also another 16M zones too. I've also run pdnssec secure-zone example.com and it took s

Re: [Pdns-users] Some DNS performance tests with various PDNS backends and BIND9

2011-05-11 Thread fredrik danerklint
Nick, Can you send me the examplecom.txt file so that I can test the mongodb backend? > Hello, > > Just in case someone would like to examine some comparative performance > results re. various PowerDNS backends with ref. to BIND9, I am posting > the following tests. > -- //fredan ___

Re: [Pdns-users] mysql-tests

2011-05-01 Thread fredrik danerklint
erkan, if you used a script to generate all the data, do you think that you can post that so I also can run these test against the mongodbbackend? > Moin Bert, > > On Wed, Apr 27, 2011 at 03:15:27PM +0200, bert hubert wrote: > > On Sat, Apr 23, 2011 at 01:04:51AM +0200, erkan yanar wrote: > >

Re: [Pdns-users] Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-04-05 Thread fredrik danerklint
Hi! I've just send the sourcecode of the backend to Bert! //fredan ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: [Pdns-users] Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-04-05 Thread fredrik danerklint
Heh! I will release the source very soon, now! Just some documentation left before bert gets it... > Fredrik, > > > $ dig +dnssec -t A www.example.com @127.0.0.1 -p5300 +multiline > > The first thing I did was to check the date on your message, expecting > you to have sent it on April 1st. :-)

[Pdns-users] Mongo DB and PowerDNS part 3: Now with DNSSEC

2011-04-03 Thread fredrik danerklint
:-) $ dig +dnssec -t A www.example.com @127.0.0.1 -p5300 +multiline ; <<>> DiG 9.7.1-P2 <<>> +dnssec -t A www.example.com @127.0.0.1 -p5300 +multiline ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63523 ;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORI

Re: [Pdns-users] wildcards in backend and wrong any answer

2011-04-01 Thread fredrik danerklint
I think you forgott to update the packethandler.hh ;-) packethandler.cc:311: error: prototype for ‘bool PacketHandler::getBestWildcard(DNSPacket*, SOAData&, const string&, std::vector >*)’ does not match any in class ‘PacketHandler’ packethandler.hh:113: error: candidate is: std::vector > Packe

[Pdns-users] Mongo DB and PowerDNS part 2

2011-03-26 Thread fredrik danerklint
This is from native backend with MongoDB! $ dig www.example.com A @127.0.0.1 -p5300 ; <<>> DiG 9.7.1-P2 <<>> www.example.com A @127.0.0.1 -p5300 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55603 ;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0,

Re: [Pdns-users] PowerDNS + Redis, using PyPdnsRedis

2011-03-18 Thread fredrik danerklint
I'm working on it. It's gonna be a pipe backend (in c++) because I couldn't get it to compile as a native backend with the include files from MongoDB at this moment. What I need right now is some data to test with. The readme file in directory regression-tests sad that there should be a file

[Pdns-users] Mongo DB and Powerdns

2011-03-14 Thread fredrik danerklint
Hi! I'm asking if some has or is doing a backend for Mongo DB? -- //fredan ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: [Pdns-users] Use recursor to block phishing

2008-07-25 Thread fredrik danerklint
You can use my NoMoreAds for that. http://www.fredan.org/os/ > Hi, > > How I create a zone on recursor to block phishing sites ? > > eg.: point the phishing.com domain to my loopback interface 127.0.0.1 > > zone file exemple > > a1964.g.akamai.net. 127.0.0.1 > abakos.com.es.127.0.0.1

[Pdns-users] No More Ads - Updated

2008-06-29 Thread fredrik danerklint
There is now a new version of the noads for the pdns_recursor! This new version now has the possibility to automatically reload one of the files if they are changed! So all you have to do now is to change the file and do nothing more. The patch for the pdns_recursor itself includes a new log f

[Pdns-users] No More Ads!

2008-06-25 Thread fredrik danerklint
Since the release of pdns-recursor 3.1.7 you can make externa function with the help of the LUA language... Well, what I've done is to take the host file from the site http://www.mvps.org/winhelp2002/hosts.htm to work with pdns-recursor. So from now on you don't have to see those annoying ads a

[Pdns-users] Domainkeys with Bind

2006-11-12 Thread fredrik danerklint
Hi! I've added my domainkeys to my domain in my bind file like this: ;DomainKeys support... _domainkey.fredan.se. IN TXT "t=y; o=~;" Now when I run dig _domainkey.fredan.se TXT ; <<>> DiG 9.2.5 <<>> _domainkey.fredan.se TXT ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: Q