<div dir="ltr">Hi John,<div><br></div><div>I have a service that creates one subdomain for each account. Example:</div><div><br></div><div><a href="http://account1.domain.com">account1.domain.com</a></div><div><a href="http://account2.domain.com">account2.domain.com</a></div>
<div><br></div><div style>I have to create an A record for each subdomain. This is easy since i'm using the mysql backend.</div><div style><br></div><div style>The issue is that sometimes Powerdns won't "see" the new subdomains. I'm not able to reproduce this issue easily, but even with the subdomain created, it takes a while for Powerdns to serve that record properly. In other words, i see it in the database, but a simple dig directly to Powerdns won't return it. </div>
<div style><br></div><div style>A solution that I found was to use a wildcard record. It works perfectly since all subdomains point to the same IP.</div><div style><br></div><div style>Now i also have to create TXT records ( which varies between accounts ) for each subdomain so the wildcard for A records stopped working and i'm not sure about how to deal or fix this.</div>
<div style><br></div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 4:49 PM, John Miller <span dir="ltr"><<a href="mailto:johnmill@brandeis.edu" target="_blank">johnmill@brandeis.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Fernando,<br>
<br>
This is how wildcard DNS is supposed to behave.  Only if there's no label for your query will the wildcard entry be read.<br>
<br>
In your case, yes, if there's a TXT record<br>
<br>
<a href="http://test.example.org" target="_blank">test.example.org</a>.       TXT     adsfasdfasdfasdfasdfasdfasdfas<u></u>dfasdf<br>
<br>
then a query of<br>
<br>
<a href="http://test.example.org" target="_blank">test.example.org</a>.       A?<br>
<br>
will not fall through to the wildcard, because there's a record with label "test".<br>
<br>
See section 2.2.1 in RFC 4592 (<a href="http://tools.ietf.org/html/rfc4592" target="_blank">http://tools.ietf.org/html/<u></u>rfc4592</a>) for a fairly good example of this.<br>
<br>
You could of course write your own code to look for a wildcard entry (by querying something outlandish like <a href="http://qwerqwerqwerwqerwqerqwer.example.org" target="_blank">qwerqwerqwerwqerwqerqwer.<u></u>example.org</a> and checking the response).<br>

<br>
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?<br>
<br>
John<div class="im"><br>
<br>
<br>
<br>
On 05/14/2013 02:59 PM, Fernando Morgenstern wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
I have a wildcard of type A for a certain domain ( Eg.: *.<a href="http://example.org" target="_blank">example.org</a><br></div>
<<a href="http://example.org" target="_blank">http://example.org</a>> ).<div class="im"><br>
<br>
I noticed that it only works if no records are found for a subdomain,<br>
including other types like TXT, SPF etc.<br>
<br></div>
Example: if there is a <a href="http://test.example.org" target="_blank">test.example.org</a> <<a href="http://test.example.org" target="_blank">http://test.example.org</a>> record<div class="im"><br>
of type TXT but no record for the subdomain of type A, wildcard won't work.<br>
<br>
Is it possible to avoid this and force powerdns to always use the wildcard?<br>
<br>
Thanks.<br>
<br>
</div></blockquote>
</blockquote></div><br></div>