On 09/03/2010 03:06 AM, Walery Studennikov wrote: > When I ask A record for domain and A record dowsn't exists, but CNAME > record exists instead, I want pdns to return CNAME records and > status:NOERROR, but now it doesn't.
You don't want to do this. CNAME + NXDOMAIN is the correct response for an authoritative server without recursion when the CNAME target needs chasing. The recursor knows that this means "oh, the authoritative server doesn't know anything about the CNAME target, I need to find it myself". > It should return NOERROR, but it returns NXDOMAIN. No. No, it really shouldn't. Why would you possibly want to do this? The DNS RFCs are pretty explicit about this. > But I want both: status:NOERROR and CNAME record in answer section. > How to achieve this? What exactly are you trying to achieve here? You're going to have to explain this, because basically what you're asking for here is a *broken* nameserver. The behavior you're claiming as wrong is exactly what it should be. -- Derrik Pates de...@devrandom.net _______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users