<div dir="ltr">I have already use +trace it gives me the following answer, like this:<div><div>global options: +cmd</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://E.ROOT-SERVERS.NET">E.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://G.ROOT-SERVERS.NET">G.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://D.ROOT-SERVERS.NET">D.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://H.ROOT-SERVERS.NET">H.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://K.ROOT-SERVERS.NET">K.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://B.ROOT-SERVERS.NET">B.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://I.ROOT-SERVERS.NET">I.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://J.ROOT-SERVERS.NET">J.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://F.ROOT-SERVERS.NET">F.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://C.ROOT-SERVERS.NET">C.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://M.ROOT-SERVERS.NET">M.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://L.ROOT-SERVERS.NET">L.ROOT-SERVERS.NET</a>.</div><div>.<span class="" style="white-space:pre"> </span>518400<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>NS<span class="" style="white-space:pre"> </span><a href="http://A.ROOT-SERVERS.NET">A.ROOT-SERVERS.NET</a>.</div><div><br></div><div>I also add in 'named.conf' file, the following commands:</div><div><div>logging {</div><div> channel debug {</div><div> file "data/named.log" size 10m;</div><div><span class="" style="white-space:pre"> </span>severity debug 99;</div><div> print-time yes;</div><div> print-severity yes;</div><div> print-category yes;</div><div> };</div><div>category "default" { "debug"; };</div><div>category "general" { "debug"; };</div><div>category "database" { "debug"; };</div><div>category "security" { "debug"; };</div><div>category "config" { "debug"; };</div><div>category "resolver" { "debug"; };</div><div>category "xfer-in" { "debug"; };</div><div>category "xfer-out" { "debug"; };</div><div>category "notify" { "debug"; };</div><div>category "client" { "debug"; };</div><div>category "unmatched" { "debug"; };</div><div>category "network" { "debug"; };</div><div>category "update" { "debug"; };</div><div>category "queries" { "debug"; };</div><div>category "dispatch" { "debug"; };</div><div>category "dnssec" { "debug"; };</div><div>category "lame-servers" { "debug"; }; </div><div><br></div><div>};</div></div><div>and I used 'dig <a href="http://www.example.ma">www.example.ma</a> -d' to debug.</div><div>In the file 'named.log', I have the detail of debug but I dont find functions that are used in Bind source files.</div><div><br></div><div>Thanks.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-30 11:10 GMT+00:00 Steven Carr <span dir="ltr"><<a href="mailto:sjcarr@gmail.com" target="_blank">sjcarr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 30 November 2014 at 11:04, Kaouthar Chetioui<br>
<span class=""><<a href="mailto:kaoutharchetioui@gmail.com">kaoutharchetioui@gmail.com</a>> wrote:<br>
> I want to know the exact path that follows bind to resolve a DNS query<br>
<br>
</span>Please reply to the list not direct.<br>
<br>
The option you are looking for is +trace and needs to be invoked on<br>
the server/system that will be resolving the query for the client.<br>
<br>
You might want to try "man dig" and look at the documentation first in future...<br>
<br>
Steve<br>
</blockquote></div><br><br clear="all"><div><br></div><div class="gmail_signature"><div>Kaouthar.</div></div>
</div></div></div>