[Pdns-users] Wildcard record based on type

John Miller johnmill at brandeis.edu
Tue May 14 19:49:42 UTC 2013


Hi Fernando,

This is how wildcard DNS is supposed to behave.  Only if there's no 
label for your query will the wildcard entry be read.

In your case, yes, if there's a TXT record

test.example.org.	TXT	adsfasdfasdfasdfasdfasdfasdfasdfasdf

then a query of

test.example.org.	A?

will not fall through to the wildcard, because there's a record with 
label "test".

See section 2.2.1 in RFC 4592 (http://tools.ietf.org/html/rfc4592) for a 
fairly good example of this.

You could of course write your own code to look for a wildcard entry (by 
querying something outlandish like qwerqwerqwerwqerwqerqwer.example.org 
and checking the response).

Can you explain why you'd want to do this, however?  In what cases would 
you have a TXT record for a label, but want to use a wildcard A record?

John



On 05/14/2013 02:59 PM, Fernando Morgenstern wrote:
> Hi,
>
> I have a wildcard of type A for a certain domain ( Eg.: *.example.org
> <http://example.org> ).
>
> I noticed that it only works if no records are found for a subdomain,
> including other types like TXT, SPF etc.
>
> Example: if there is a test.example.org <http://test.example.org> record
> of type TXT but no record for the subdomain of type A, wildcard won't work.
>
> Is it possible to avoid this and force powerdns to always use the wildcard?
>
> Thanks.
>




More information about the Pdns-users mailing list