ns"]["rcvd"]["num_queries"]) > 0) then
     1760                     print [[<tr><th>]]
     1761                     print(i18n("dns_page.dns_query_sent_vs_rcvd_distribution"))
     1762                     print [[</th>]]
     1763                     if (host["dns"]["sent"]["num_queries"] > 0) then
     1764                         print [[<td colspan=2>
     1765                      <div class="pie-chart" id="dnsSent"></div>
     1766                      <script type='text/javascript'>
     1767 
     1768                                          do_pie("#dnsSent", ']]
     1769                         print(ntop.getHttpPrefix())
     1770                         print [[/lua/host_dns_breakdown.lua', { ]]
     1771                         print(hostinfo2json(host_info))
     1772                         print [[, direction: "sent" }, "", refresh);
     1773                                       </script>
     1774                                          </td>
     1775            ]]
     1776                     else
     1777                         print [[<td colspan=2>&nbsp;</td>]]
     1778                     end
     1779 
     1780                     if (host["dns"]["rcvd"]["num_queries"] > 0) then
     1781                         print [[
     1782          <td colspan=2><div class="pie-chart" id="dnsRcvd"></div>
     1783          <script type='text/javascript'>
     1784 
     1785              do_pie("#dnsRcvd", ']]
     1786                         print(ntop.getHttpPrefix())
     1787                         print [[/lua/host_dns_breakdown.lua', { ]]
     1788                         print(hostinfo2json(host_info))
     1789                         print [[, direction: "recv" }, "", refresh);
     1790          </script>
     1791          </td>
     1792 ]]
     1793                     else
     1794                         print [[<td colspan=2>&nbsp;</td>]]
     1795                     end
     1796                     print("</tr>")
     1797                 end
     1798 
     1799                 print [[
     1800         </table>
     1801        <small><b>]]
     1802                 print(i18n("dns_page.note"))
     1803                 print [[:</b><br>]]
     1804                 print(i18n("dns_page.note_dns_ratio"))
     1805                 print [[
     1806 </small>
     1807 ]]
     1808             end
     1809         end
     1810     elseif (page == "tls") then
     1811         local fingerprint_type = 'ja3'
     1812         local context = {
     1813             fingerprint_type = fingerprint_type,
     1814             ifid = ifId,
     1815             host = host_ip
     1816         }
     1817 
     1818         print(template.gen("pages/host_tls.template", context))
     1819 
     1820     elseif (page == "ssh") then
     1821         local fingerprint_type = 'hassh'
     1822         local context = {
     1823             fingerprint_type = fingerprint_type,
     1824             ifid = ifId,
     1825             host = host_ip
     1826         }
     1827 
     1828         print(template.gen("pages/host_ssh.template", context))
     1829     elseif (page == "http") then
     1830         local http = host["http"]
     1831         if http then
     1832             print("<table class=\"table table-bordered table-striped\">\n")
     1833 
     1834             if http["sender"]["query"]["total"] > 0 then
     1835                 print(
     1836                     "<tr><th rowspan=6 width=20%><A HREF='http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods'>" ..
     1837                         i18n("http_page.http_queries") .. "</A></th><th width=20%>" .. i18n("http_page.method") ..
     1838                         "</th><th width=20% class='text-end'>" .. i18n("http_page.requests") ..
     1839                         "</th><th colspan=2 class='text-center'>" .. i18n("http_page.distribution") .. "</th></tr>")
     1840                 print