Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

when sent a query dns to pdns with type equal A , the latter sent to pipe backend using pipe protocl and qtype always egual ANY why?i use powerdns 2.9.22 and my os is ubuntu thank you in advance

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Asking ANY means PowerDNS will get back all records for that name. This has two important benefits:

  1. Any CNAMEs will be spotted, without having to do a separate CNAME query first.
  2. If PowerDNS would ask for A, and got back nothing, it would not know whether to respond NXDOMAIN ('name does not exist') or NOERROR ('name exists but there is no A') to the asker. With ANY, if there is no response, it can say NXDOMAIN.
share|improve this answer
    
i understand but if i want to use the qtype for query the db (example select * from table1 where type= qtype ) using a specified type (example A) what well i do? thank –  user104333 Jan 3 '12 at 11:05
1  
you don't. PowerDNS tells the backend what it needs, and the backend should answer :) –  Habbie Jan 7 '12 at 15:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.