I'm not sure if I'm doing something incorrectly, or I broke something.. or.. ?
<div>I'm running debian wheezy, freshly upgraded, and have this in my lua script:</div><div><br></div><div><div>function nxdomain (ip,domain,query_type)</div><div><span style="white-space:pre-wrap">        </span>ips={}</div>

<div><span style="white-space:pre-wrap">  </span>if query_type ~= pdns.A then return -1, ret end</div><div><span style="white-space:pre-wrap">  </span>ips[1]={ query_type=pdns.A, content="1.2.3.4" }</div>
<div><span style="white-space:pre-wrap">  </span>ips[2]={ query_type=pdns.A, content="5.6.7.8" }</div><div><span style="white-space:pre-wrap">        </span>return 0, ips</div><div>end</div>
</div><div><br></div><div>very simple .. copied and pasted straight out manuals .. but, it doesn't work as expected:;</div><div><br></div><div><div>$ host <a href="http://broken.example.com" target="_blank">broken.example.com</a> <a href="http://my.dns.server.com" target="_blank">my.dns.server.com</a></div>

<div>Using domain server:</div><div>Name: <a href="http://my.dns.server.com" target="_blank">my.dns.server.com</a></div><div>Address: <a href="http://my.dns.server.com" target="_blank">my.dns.server.com</a> #53</div><div>
Aliases: </div><div><br></div><div>
<a href="http://broken.example.com" target="_blank">broken.example.com</a> has address 5.6.7.8</div><div><a href="http://broken.example.com" target="_blank">broken.example.com</a> has address 1.2.3.4</div><div>Host <a href="http://broken.example.com" target="_blank">broken.example.com</a> not found: 3(NXDOMAIN)</div>

<div>Host <a href="http://broken.example.com" target="_blank">broken.example.com</a> not found: 3(NXDOMAIN)</div></div><div><br></div><div><br></div><div>.. Is it me, or does it, in a very incorrect/unexpected way, seem to be returning A, A, NXDOMAIN, NXDMOAIN, .. </div>

<div>instead of what one would expect, .. A, A?</div><div><br></div><div>Ben</div>