Hello -<br><br>I'm having a weird problem with wildcards and differences on outputs received between dig and host.<br><br>If i run dig, I get the correct answer, while host servfails.<br><br>Here are the two records in question:<br>
<br>mysql> select name,type,content from records where name like '%<a href="http://schulhausplate.ch">schulhausplate.ch</a>%';<br>+------------------------------------------+-------+-----------------------------------------------------------------------------+<br>
| name | type | content |<br>+------------------------------------------+-------+-----------------------------------------------------------------------------+<br>
| *.<a href="http://schulhausplate.ch">schulhausplate.ch</a> | CNAME | <a href="http://schulhausplate.ch">schulhausplate.ch</a>. |<br>| <a href="http://schulhausplate.ch">schulhausplate.ch</a> | A | 195.190.179.1 |<br>
+------------------------------------------+-------+-----------------------------------------------------------------------------+<br><br>I have the following set in pdns.conf;<br><br>wildcards=yes<br><br>Here is the sql query that is being ran when I do both dig and host;<br>
<br>45 Query select content,ttl,prio,type,domain_id,name from records where name='<a href="http://asfasklfjahfkjhas.schulhausplate.ch">asfasklfjahfkjhas.schulhausplate.ch</a>'<br>45 Query select content,ttl,prio,type,domain_id,name from records where type='SOA' and name='<a href="http://asfasklfjahfkjhas.schulhausplate.ch">asfasklfjahfkjhas.schulhausplate.ch</a>'<br>
45 Query select content,ttl,prio,type,domain_id,name from records where type='SOA' and name='<a href="http://schulhausplate.ch">schulhausplate.ch</a>'<br>45 Query select content,ttl,prio,type,domain_id,name from records where name='*.<a href="http://schulhausplate.ch">schulhausplate.ch</a>'<br>
45 Query select content,ttl,prio,type,domain_id,name from records where name='<a href="http://schulhausplate.ch">schulhausplate.ch</a>.'<br>45 Query select content,ttl,prio,type,domain_id,name from records where type='SOA' and name='<a href="http://schulhausplate.ch">schulhausplate.ch</a>.'<br>
45 Query select content,ttl,prio,type,domain_id,name from records where type='SOA' and name='ch.'<br><br>If I'm reading the pdns code correctly, if wildcards is enable it should also do a host is like sql statement, no?<br>
<br>$ dig <a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a> @<a href="http://ns5.us">ns5.us</a> CNAME<br><a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a>. 3600 IN CNAME <a href="http://schulhausplate.ch">schulhausplate.ch</a>.<br>
<br>What is weird though is that pdns servfails according to tcpdump, but dig still responds correctly;<br><br>15:52:05.186041 IP 209.234.247.xx.36426 > 72.249.105.xx.domain: 15897+ CNAME? <a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a>. (40)<br>
15:52:05.187325 IP 72.249.105.xx.domain > 209.234.247.xx.36426: 15897 ServFail- 1/0/0 CNAME[|domain]<br><br>Same behavior with host, except it doesn't resolve:<br><br>$ host -t CNAME <a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a> <a href="http://ns5.us">ns5.us</a><br>
Host <a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a> not found: 2(SERVFAIL)<br><br>15:52:21.762398 IP 209.234.247.xx.56340 > 72.249.105.xx.domain: 48002+ CNAME? <a href="http://asdf.schulhausplate.ch">asdf.schulhausplate.ch</a>. (40)<br>
15:52:21.763337 IP 72.249.105.xx.domain > 209.234.247.xx.56340: 48002 ServFail- 1/0/0 CNAME[|domain]<br><br>Is this behavior because I don't have a recurser setup on the box? It seems the domain still resolves, it just gives odd behavior with 'host' Any advice you can give would help a lot.<br>
<br>Thanks.<br><br><br>