Hi nusenu,
For transparency and archive purposes I'd like to show the location database version that has been used for the AS number and name lookups on the website.
that's a good idea. Actually, I am missing this information on https://metrics.torproject.org/rs.html as well - it appears as they still use an outdated location database there, but I don't know which one.
Is there a versioning scheme of the DB? if so: How do I retrieve the version of the db file? Or is this timestamp the best bet?
Yes, there is a scheme for the database _format_ (currently set to "1"), in case we need to change that somewhere in the future. The versioning scheme for the database _contents_ is a simple timestamp, and the output of "location version" is based on the database on your filesystem (not the most recent one on the servers):
$ location version Mon, 27 Sep 2021 05:47:57 GMT
I'm not looking for the version of the tool itself (which is shown via location --version ).
Yes, that is unfortunately kinda confusing... :-)
Thanks, and best regards, Peter Müller