<div dir="ltr"><div>Hi, </div><div>I am having only a forward only option in bind configuration.</div><div>When i dig on some host which has CNAME, the cache contains a longer TTL for the CNAME than the TTL for the final resolution of the IP. </div>
<div><br></div><div>However, in the example below, the CNAME is queried again when the TTL for <a href="http://a336.g.akamai.net">a336.g.akamai.net</a>. is up. </div><div><br></div><div>I was expecting that the TTL for CNAME will be used from the cache and the lookup will not happen again until the TTL has not expired. </div>
<div>Is there a way to avoid additional lookups when the value is already present in the cache for CNAME entries.</div><div><br></div><div>root@titan# dig <a href="http://emp.bbci.co.uk">emp.bbci.co.uk</a></div><div><br>
</div><div>; <<>> DiG 9.8.2rc1-RedHat-9.8.2-14.mlos2.mwg <<>> <a href="http://emp.bbci.co.uk">emp.bbci.co.uk</a></div><div>;; global options: +cmd</div><div>;; Got answer:</div><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27673</div>
<div>;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0</div><div><br></div><div>;; QUESTION SECTION:</div><div>;<a href="http://emp.bbci.co.uk">emp.bbci.co.uk</a>.<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>A</div>
<div><br></div><div>;; ANSWER SECTION:</div><div><a href="http://emp.bbci.co.uk">emp.bbci.co.uk</a>.<span class="" style="white-space:pre"> </span>436<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>CNAME<span class="" style="white-space:pre"> </span><a href="http://emp-live.bbc.net.uk">emp-live.bbc.net.uk</a>.</div>
<div><a href="http://emp-live.bbc.net.uk">emp-live.bbc.net.uk</a>.<span class="" style="white-space:pre"> </span>253<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>CNAME<span class="" style="white-space:pre"> </span><a href="http://emp.bbci.co.uk.edgesuite.net">emp.bbci.co.uk.edgesuite.net</a>.</div>
<div><a href="http://emp.bbci.co.uk.edgesuite.net">emp.bbci.co.uk.edgesuite.net</a>. 3368 IN<span class="" style="white-space:pre"> </span>CNAME<span class="" style="white-space:pre"> </span><a href="http://a336.g.akamai.net">a336.g.akamai.net</a>.</div>
<div><a href="http://a336.g.akamai.net">a336.g.akamai.net</a>.<span class="" style="white-space:pre"> </span>6<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>A<span class="" style="white-space:pre"> </span>58.27.124.225</div>
<div><a href="http://a336.g.akamai.net">a336.g.akamai.net</a>.<span class="" style="white-space:pre"> </span>6<span class="" style="white-space:pre"> </span>IN<span class="" style="white-space:pre"> </span>A<span class="" style="white-space:pre"> </span>58.27.124.200</div>
</div>