real BIND start time

Evan Hunt each at isc.org
Thu Jan 5 22:21:08 UTC 2017


Server boot time is reported in the HTTP statistics channel.

For example, with this in named.conf:
statistics-channels { inet * port 8888 allow { localhost; }; };

$ curl http://localhost:8888/json/v1/status
{
  "json-stats-version":"1.2",
  "boot-time":"2017-01-05T22:01:35.313Z",
  "config-time":"2017-01-05T22:01:35.380Z",
  "current-time":"2017-01-05T22:18:37.498Z",
  "version":"9.11.0-P1"
}

$ curl http://localhost:8888/xml/v3/status
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/bind9.xsl"?>
<statistics version="3.8"><server><boot-time>2017-01-05T22:01:35.313Z</boot-time><config-time>2017-01-05T22:01:35.380Z</config-time><current-time>2017-01-05T22:18:47.162Z</current-time><version>9.11.0-P1</version></server><views/></statistics> 

-- 
Evan Hunt -- each at isc.org
Internet Systems Consortium, Inc.


More information about the bind-users mailing list