real BIND start time
Mark Andrews
marka at isc.org
Thu Jan 5 22:31:33 UTC 2017
Personally I'd just ask named.
% rndc status
version: BIND 9.11.0 <id:512b4db>
running on rock.dv.isc.org: Darwin x86_64 12.6.0 Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64
boot time: Fri, 30 Dec 2016 04:42:08 GMT
last configured: Fri, 30 Dec 2016 04:42:08 GMT
configuration file: /etc/named.conf
CPUs found: 8
worker threads: 8
UDP listeners per interface: 7
number of zones: 218 (194 automatic)
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is ON
recursive clients: 0/900/1000
tcp clients: 0/150
server is up and running
%
Or you can get it from the xml/json stats channels. Adjust the
urls to match how you have configured the server.
http://localhost:954/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>2016-12-30T04:42:08.871Z</boot-time><config-time>2016-12-30T04:42:08.936Z</config-time><current-time>2017-01-05T22:28:40.371Z</current-time><version>9.11.0</version></server><views/></statistics>
http://localhost:954/json/v1/status
{
"json-stats-version":"1.2",
"boot-time":"2016-12-30T04:42:08.871Z",
"config-time":"2016-12-30T04:42:08.936Z",
"current-time":"2017-01-05T22:29:11.384Z",
"version":"9.11.0"
}
Mark
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users
mailing list