<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-9"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=TR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I am trying to add wildcard support for a domain like:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>*.mydomain.com IN A 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I expect these results:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.mydomain.com -> 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>two.mydomain.com -> 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>However, This is also work for:</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.one.mydomain.com -> 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As you can see, “one.one” is a two level subdomain. I only match single level subdomain and return as 127.0.0.1. So for two level domains or three level and goes on I expect this:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Expected Result:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.one.mydomain.com -> NXDOMAIN<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.two.three.one.mydomain.com -> NXDOMAIN</span> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Actual Result:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.one.mydomain.com -> 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>one.two.three.one.mydomain.com -> 127.0.0.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>=================== EXAMPLES ===================<o:p></o:p></span></p><p class=MsoNormal>Records/Rules:<o:p></o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>*.mydomain.com IN A 1.1.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>*.one.mydomain.com IN A 4.4.4.4<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>*.two.mydomain.com IN A 5.5.5.5<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal>BIND Behavior:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.mydomain.com -> 1.1.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.one.mydomain.com -> 4.4.4.4<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.two.mydomain.com -> 5.5.5.5 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>hello.test.two.mydomain.com -> NXDOMAIN<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>PowerDNS Behavior: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.mydomain.com -> 1.1.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.one.mydomain.com -> 1.1.1.1 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>test.two.mydomain.com -> 1.1.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>hello.test.two.mydomain.com -> 1.1.1.1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'>=================== EXAMPLES ===================<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal>How can i get the BIND result as i expected on PowerDNS? Is this behavior intentional? How c an i restrict wildcards to one level only?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Gencer.<span style='font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p></div></body></html>