On relay search my new Tor relay's country is given as Ukraine. In fact it's in Germany. Also the AS given on relay search is wrong.

Have I configured the relay wrongly? Can I change this so its country is correct?

This is significant, as a user wishing to avoid relays in Germany might get mine in error.

3 Answers 3


There is no way to change this. The country code is assigned to the relay by the association of its IP address in a "GeoIP" GeoLite2 database provided by MaxMind. Unfortunately these types of GeoIP assignments can be incorrect, and also become more out-of-date over time.


Sorry, I have no chance to add a comment since I have too low reputation so far. But I would like to give a more exact answer to this question. Here is a very logical answer to your question, to complete the answer that @Steve gave you:

Your relay is using Tor version which was released on 2020-07-09, which uses GeoIP2 database "Last updated based on December 3 2019 Maxmind GeoLite2 Country" (read from source). If we then go further to RIPE Database, we can see that last update to your IP range was made on 2020-04-15, which was after the date 2019-12-03 when your GeoIP2 database was released.


Simply wait for Tor to update their GeoIP2 database.

PS. It is so easy to find people on Google by only using four keywords: Tor, Relay, Ukraine and Lark :-D


  • The country is chosen by the directory authorities rather than the relay itself, so if it requires a newer database, the authorities will need to update.
    – Steve
    Sep 4, 2020 at 20:31
  • @Steve > So you mean that authority uses a database older than 2020-04-15? That was about a half year ago. Interesting however. Are you a Tor developer? Just curious, since youre answering many questions in Tor community on this site.
    – FearDC
    Sep 4, 2020 at 20:43
  • No Tor versions have upgraded yet from the December 2019 database: gitlab.torproject.org/tpo/core/tor/-/commits/master/src/config/…. And I'm not a developer on either the Tor network or tor application, but I am familiar with some parts of it so just here answering questions when I can.
    – Steve
    Sep 4, 2020 at 23:26
  • Great then! Hopefully they will update soon.
    – FearDC
    Sep 5, 2020 at 9:42
  • Thanks Steve and FearDC! I am also a bit surprised that Tor is working from such an old GeoIP database - Maxmind update GeoLite2 every week. I was a bit alarmed you could find out so much about my relay! Googling those keywords didn't work for me, but if you just type "lark" into the Tor relay search ...
    – mr.lark
    Sep 5, 2020 at 17:49

It's OK - all the ip-to-geo databases do have their mistakes. If you need it to be as precise as it can - buy a paid GeoIP database and feed it to Tor, but even this time - it will have it's misses, just be prepared

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.