Analyzing and Comparing DNS Lookup Tools in Python

  • José C. C. Pinto UFRGS
  • Eder J. Scheid UFRGS
  • Muriel F. Franco UFRGS
  • Lisandro Z. Granville UFRGS


The performance of Domain Name System (DNS) resolvers is crucial, as the majority of the communication in the Internet starts with a DNS lookup to resolve a domain an IP address to reach the desired content. In this sense, the academia has been devoted to measure and analyze the performance of DNS resolvers using different tools. However, such tools might present different results due to their implementation and affect the measurements. Hence, this paper provides an analysis and comparison of there different DNS lookup tools employed in the literature and discuss the impact of the tool selection.


Affinito, A., Botta, A., and Ventre, G. (2022). Local and Public DNS Resolvers: Do You Trade Off Performance Against Security? In IFIP Networking Conference (IFIP Networking 2022), pages 1–9, Catania, Italy.

Ager, B., Mühlbauer, W., Smaragdakis, G., and Uhlig, S. (2010). Comparing DNS Resolvers in the Wild. IMC ’10, page 15–21, New York, NY, USA. Association for Computing Machinery.

Astrand, P. (2003). PEP 324 – subprocess New Process Module.

Borgolte, K., Chattopadhyay, T., Feamster, N., Kshirsagar, M., Holland, J., Hounsel, A., and Schmitt, P. (2019). How DNS over HTTPS is Reshaping Privacy, Performance, and Policy in the Internet Ecosystem. SSRN Electronic Journal.

Böttger, T., Cuadrado, F., Antichi, G., Fernandes, E. L. a., Tyson, G., Castro, I., and Uhlig, S. (2019). An Empirical Study of the Cost of DNS-over-HTTPS. In Proceedings of the Internet Measurement Conference (IMC 2019), pages 15––21, Amsterdam, Netherlands.

Bozkurt, I., Aguirre, A., Chandrasekaran, B., Godfrey, P., Laughlin, G., Maggs, B., and Singla, A. (2017). Why Is the Internet so Slow?! pages 173–187.

Butkiewicz, M., Madhyastha, H. V., and Sekar, V. (2011). Understanding Website Complexity: Measurements, Metrics, and Implications. In ACM Conference on Internet Measurement Conference (IMC 2011), page 313–328, Berlin, Germany.

Chhabra, R., Murley, P., Kumar, D., Bailey, M., and Wang, G. (2021). Measuring DNS-over-HTTPS Performance around the World. In ACM Internet Measurement Conference (IMC 2021), page 351–365, Virtual Event.

Doan, T. V., Tsareva, I., and Bajpai, V. (2021). Measuring dns over tls from the edge: Adoption, reliability, and response times. In Hohlfeld, O., Lutu, A., and Levin, D., editors, Passive and Active Measurement, pages 192–209, Cham. Springer International Publishing.

Hounsel, A., Borgolte, K., Schmitt, P., Holland, J., and Feamster, N. (2020). Comparing the effects of dns, dot, and doh on web performance. In Proceedings of The Web Conference 2020, WWW ’20, page 562–572, New York, NY, USA. Association for Computing Machinery.

Hounsel, A., Schmitt, P., Borgolte, K., and Feamster, N. (2021). Can Encrypted DNS Be Fast? In Passive and Active Measurement, pages 444–459, Cham. Springer International Publishing.

Kurose, J. F. and Ross, K. W. (2016). Computer Networking: A Top-Down Approach. Pearson, 7 edition.

Le Pochat, V., Van Goethem, T., Tajalizadehkhoob, S., Korczyński, M., and Joosen, W. (2019). Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation. In Network and Distributed System Security Symposium (NDSS 2019), San Diego, USA.

Liu, C. and Albitz, P. (2001). DNS and BIND. O’Reilly & Associates, 4 edition.

Mockapetris, P. and Dunlap, K. J. (1988). Development of the Domain Name System. In Symposium Proceedings on Communications Architectures and Protocols (SIGCOMM 1988), page 123–133, Stanford, California, USA.

Python Software Foundation (2023). time — Time Access and Conversions.

Sharma, R., Feamster, N., and Hounsel, A. (2022). Measuring the Availability and Response Times of Public Encrypted DNS Resolvers. arXiv 2208.04999, cs.CR.

All links visited on 25/09/2023
Como Citar

Selecione um Formato
PINTO, José C. C.; SCHEID, Eder J.; FRANCO, Muriel F.; GRANVILLE, Lisandro Z.. Analyzing and Comparing DNS Lookup Tools in Python. In: ESCOLA REGIONAL DE REDES DE COMPUTADORES (ERRC), 20. , 2023, Porto Alegre/RS. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2023 . p. 49-54. DOI: