[Pdns-users] Pipe backend problems with MX NS and SOA

bert hubert bert.hubert at netherlabs.nl
Thu Dec 14 07:35:00 UTC 2006


On Wed, Dec 13, 2006 at 05:13:30PM -0500, Shawn Moore wrote:
> can't seem to get MX and NS working for just the domain test.com.
> A/PTR/CNAME all work.  MX works if you query x.test.com, but not
> test.com.  NS does not seem to work at all.  I'm wondering if it has
> something to do with not having SOA, but I can't seem to find any
> examples on getting SOA in the perl file so any help on that would be
> appreciated as well.

Shawn,

The script below is not complete, so I can't test. Can you check without a
tab character between the MX priority. Also, you really to need to implement
a SOA record (somewhere)!

Bert

> 
> Regards,
> 
> Shawn
> 
> ----- START SCRIPT -----
>                if(($qtype eq "A" || $qtype eq "ANY") && $qname eq 
>                "test.com") {
>                        print "DATA     $qname  $qclass A       3600
> -1      1.2.3.4\n";
>                }
>                elsif(($qtype eq "PTR" || $qtype eq "ANY") && $qname
> eq "4.3.2.1.in-addr.arpa") {
>                        print "DATA     $qname  $qclass PTR     3600
> -1      test.com\n";
>                }
>                elsif(($qtype eq "MX" || $qtype eq "ANY") && $qname eq
> "test.com") {
>                        print "DATA     $qname  $qclass MX      3600
> -1      15      mail1.test.com\n";
>                }
>                elsif(($qtype eq "MX" || $qtype eq "ANY") && $qname eq
> "x.test.com") {
>                        print "DATA     $qname  $qclass MX      3600
> -1      5       x.test.com\n";
>                }
>                elsif($qtype eq "NS") {
>                        print "DATA     $qname  $qclass NS      3600
> -1      dns.test.com\n";
>                }
> ----- STOP SCRIPT -----
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> 
> 
> !DSPAM:45807b1b225241410093335!

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://netherlabs.nl              Open and Closed source services


More information about the Pdns-users mailing list