matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.87k stars 2.65k forks source link

GeoIP: Add support for Domain Name Databases #17584

Open mddvul22 opened 3 years ago

mddvul22 commented 3 years ago

We have purchased the Maxmind Domain Name database for use in our Matomo reports. Specifically, we want to be able to see the domain name tied to an IP address, in addition to the provider, which is not always the same. However, when I try to provide the download url for this database, Matomo downloads it, but then gives me a red box:

image

It appears that Matomo can't use this database to show domain names of visitors. Is that correct?

Expected Behavior

I would expect that I could import this database and that my visitor reports would be able to show the domain name tied to each IP address.

Current Behavior

Right now, I can't get the database imported. If there is some other method to provide this info, within Matomo, I'd love to know how to do that. We are showing the Provider in the visitor details, but that is not always the same as the equivalent domain name tied to the IP address.

Context

Our company would like to be able to know the domain name associated with each visitor.

Your Environment

sgiehl commented 3 years ago

@mddvul22 Thanks for creating the issue. Matomo currently doesn't support the use of domain name databases and won't show the information even when it would be available in the geoip database. Matomo is only able to handle location databases (like city, country, ...), provider / organisation databases (like isp, asn, ...) or combined databases (like enterprise). Guess this would need to be handled as separate database type, as one might want location, provider and domain name information.

mddvul22 commented 3 years ago

Thank you for the reply/update/info.