[Paper Review] IP Geolocation through Reverse DNS
This paper proposes a machine learning approach to geolocate IP addresses using publicly available reverse DNS hostnames, treating the task as a multi-label classification problem to rank potential city-level locations. It significantly outperforms academic baselines and complements commercial geolocation databases, achieving 54% of hostnames within 20 km of their true location.
IP Geolocation databases are widely used in online services to map end user IP addresses to their geographical locations. However, they use proprietary geolocation methods and in some cases they have poor accuracy. We propose a systematic approach to use publicly accessible reverse DNS hostnames for geolocating IP addresses. Our method is designed to be combined with other geolocation data sources. We cast the task as a machine learning problem where for a given hostname, we generate and rank a list of potential location candidates. We evaluate our approach against three state of the art academic baselines and two state of the art commercial IP geolocation databases. We show that our work significantly outperforms the academic baselines, and is complementary and competitive with commercial databases. To aid reproducibility, we open source our entire approach.
Motivation & Objective
- To develop a systematic, publicly accessible method for IP geolocation using reverse DNS hostnames, which are often overlooked in favor of proprietary techniques.
- To address the limitations of existing academic geolocation baselines by leveraging publicly available hostname data with machine learning.
- To improve the accuracy and coverage of IP geolocation systems by combining reverse DNS data with other sources, especially where commercial databases fall short.
- To ensure privacy by relying only on coarse, publicly shared location hints in hostnames, avoiding collection of precise GPS data.
- To enable reproducibility by open-sourcing the entire pipeline, including feature generators, classifier, and sampling strategy.
Proposed method
- The method treats reverse DNS geolocation as a multi-label classification problem, where each hostname is mapped to a ranked list of potential city-level locations.
- A hostname splitter parses subcomponents (e.g., 'wallingford.ct.us') into potential geographic terms such as city, state, and country.
- A blacklist filters out non-geographic terms (e.g., 'mail', 'server') to reduce noise in the feature space.
- The approach uses a combination of primary and secondary features, including geographic term frequency, linguistic patterns, and contextual clues from hostname structure.
- A supervised classifier is trained on a ground truth dataset of 27 million hostnames with anonymized city-level locations, using publicly available datasets for feature engineering.
- The model outputs multiple plausible location candidates per hostname, enabling fusion with other geolocation data sources to improve overall accuracy.
Experimental results
Research questions
- RQ1Can reverse DNS hostnames be systematically leveraged to improve IP geolocation accuracy, especially in cases where commercial databases are inaccurate or incomplete?
- RQ2How does a machine learning model trained on reverse DNS data compare to state-of-the-art academic baselines in terms of error distance and coverage?
- RQ3To what extent can reverse DNS geolocation complement commercial geolocation databases, and in which domains does it outperform them?
- RQ4What is the impact of privacy-preserving data handling—such as anonymizing ground truth to city-level accuracy—on the reliability and ethical use of geolocation systems?
- RQ5Can a fully open-source pipeline for reverse DNS geolocation be built and reproduced using only publicly available data and sampling strategies?
Key findings
- The proposed method outperforms all three academic baselines in terms of median error and cumulative error distance, with a 54% hit rate within 20 km of the true location.
- The DRoP baseline performed significantly worse than other methods, highlighting the importance of structured feature engineering in reverse DNS geolocation.
- On average, the method achieved a median error of 43.7 km, which is substantially higher than commercial providers (16.7 km and 11.1 km), but still competitive in specific domains.
- The method demonstrated strong performance in niche domains such as educational institutions and government networks, where commercial databases often underperform.
- The model’s ability to output multiple plausible location candidates makes it highly suitable for fusion with other geolocation sources, enhancing overall system robustness.
- The open-sourcing of the model, feature generators, and sampling strategy enables full reproducibility and extension by the research community.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.