[Pdns-users] Help with Pipe Backend

2013-08-16 Thread pdns
Hello everyone. I'm having a problem using the Pipe backend. What I'm trying to do is have all queries that come in get answered with a specific ip. To do this, I'm trying out the Pipe backend using a basic perl script. pdns.conf (authritative server version 3.3): launch=pipe pipe-comman

Re: [Pdns-users] Help with Pipe Backend

2013-08-16 Thread Dan Campbell
I'll have look at my pipe back end source code tomorrow to be sure, but two thing s come to mind - the fields in the "DATA" response have to be separated by single tabs, not spaces, and I believe the "-1" on the response is actually supposed to match the I'd field in the query. It's also possib

Re: [Pdns-users] Help with Pipe Backend

2013-08-17 Thread Aki Tuomi
All fields are separated by \t (tab) indeed. Also you are supposed to send SOA for the domain as well. Aki Tuomi On Fri, Aug 16, 2013 at 08:46:45PM -0600, Dan Campbell wrote: > I'll have look at my pipe back end source code tomorrow to be sure, but two > thing s come to mind - the fields in t

Re: [Pdns-users] Help with Pipe Backend

2013-08-20 Thread flair0303
Thank guys. I finally got it working on pdns v3.3. For the curious, here's the perl script that works: #!/usr/bin/perl use warnings; use strict; $|=1; # no buffering my $line=<>; chomp($line); unless($line eq "HELO\t1") { print "FAIL\n"; print

Re: [Pdns-users] Help with Pipe Backend

2013-08-20 Thread Aki Tuomi
You *must* reply with SOA and A record when asked for ANY if the SOA record name matches the query. You should check the QNAME as well, and reply with relevant records. Aki On Tue, Aug 20, 2013 at 01:45:08PM -0700, flair0303 wrote: > Thank guys. I finally got it working on pdns v3.3. For the cu