On further reflection I suspect broken clocks.  Named uses If-Modified-Since to 
determine
whether to resend the style file.  Named uses the server’s start time as the 
modification time
in that calculation.
> On 26 Aug 2024, at 11:06, Mark Andrews <ma...@isc.org> wrote:
> 
> We are probably not properly managing the style sheet versioning correctly.  
> Flushing
> the browser’s cache when you install a new version of BIND should fix the 
> display problems.
> 
> As for collectd there are differences in which stats are collected.  You a 
> probably
> looking for something that is no longer present.
> 
> git diff bind-9.18 bind-9.20 bin/named/bind9.xsl
> 
>> On 26 Aug 2024, at 05:10, Havard Eidnes via bind-users 
>> <bind-users@lists.isc.org> wrote:
>> 
>> Hi,
>> 
>> I'm mostly running BIND 9.18.x, and have configured statistics
>> publishing via
>> 
>> statistics-channels {
>>       inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
>>       inet "actual-address" port 8053 allow { prefix1/24; prefix2/24; };
>> };
>> 
>> I've started testing 9.20.x.
>> 
>> I see BIND 9.20.x stats publishing is ... different.
>> 
>> If I use firefox and visit http://actual-address:8053/ with BIND
>> 9.18.x, I get a reasonably rendered HTML display which is easy to
>> view.
>> 
>> Not so for BIND 9.20.x; I get an XML document which firefox (in
>> this particular case version 120.0) informs me at the top
>> 
>>  This XML file does not appear to have any style information
>>  associated with it. The document tree is shown below.
>> 
>> and the document starts with
>> 
>> <!--
>> 
>> - Copyright (C) Internet Systems Consortium, Inc. ("ISC")
>> -
>> - SPDX-License-Identifier: MPL-2.0
>> - This Source Code Form is subject to the terms of the Mozilla Public
>> - License, v. 2.0. If a copy of the MPL was not distributed with this
>> - file, you can obtain one at https://mozilla.org/MPL/2.0/.
>> -
>> - See the COPYRIGHT file distributed with this work for additional
>> - information regarding copyright ownership.
>> -->
>> <xsl:stylesheet version="1.0">
>> <xsl:output method="html" indent="yes" version="4.0"/>
>> <!--
>> the version number **below** must match version in bin/named/statschannel.c 
>> -->
>> <!--
>> don't forget to update "/xml/v<STATS_XML_VERSION_MAJOR>" in the HTTP 
>> endpoints listed below 
>> -->
>> <xsl:template match="statistics[@version="3.14"]">
>> <html>
>> <head>
>> <script type="text/javascript" 
>> src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"/>
>> <script type="text/javascript">
>> $(function($) { var wid=0; $('table.zones').each(function(i) { if( 
>> $(this).width() > wid ) wid = $(this).width(); return true; }); 
>> $('table.zones').css('min-width', wid ); 
>> $("h2+table,h3+table,h4+table,h2+div,h3+div,h2+script,h3+script").prev().append('
>> <a class="tabletoggle" href="#" style="font-size:small">Show/Hide</a>
>> '); $(".tabletoggle").click(function(){ var n = 
>> $(this).closest("h2,h3,h4").next(); if (n.is("script")) { n = n.next(); } if 
>> (n.is("div")) { n.toggleClass("hidden"); n = n.next(); } if (n.is("table")) 
>> { n.toggleClass("hidden"); } return false; }); });
>> </script>
>> 
>> and is quite different from what BIND 9.18.x presents:
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <?xml-stylesheet type="text/xsl" href="/bind9.xsl"?>
>> <statistics 
>> version="3.13"><server><boot-time>2024-08-16T09:03:10.730Z</boot-time>
>> 
>> etc. etc.
>> 
>> The question is: am I alone in experiencing this?
>> 
>> It also looks like I'll have to find out why collecting BIND
>> stats via collectd (5.12.0) no longer works after upgrading to
>> 9.20.x.
>> 
>> Best regards,
>> 
>> - Håvard
>> -- 
>> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
>> this list
>> 
>> ISC funds the development of this software with paid support subscriptions. 
>> Contact us at https://www.isc.org/contact/ for more information.
>> 
>> 
>> bind-users mailing list
>> bind-users@lists.isc.org
>> https://lists.isc.org/mailman/listinfo/bind-users
> 
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742              INTERNET: ma...@isc.org
> 

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: ma...@isc.org

-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to