A
A
aosvxs7ui2019-04-01 11:58:12
Python
aosvxs7ui, 2019-04-01 11:58:12

Python 3 how to send request to dns server?

Hello. I'm quite new to Python. I set out to write a simple script that would send a request to the dns server for a given domain name and receive information, process it and display it. Faced with a complete lack of understanding of how to do this: use the library or use this https://habr.com/ru/post/346098/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2019-04-01
@aosvxs7ui

A simple google - ready library:
https://github.com/rthalley/dnspython
And here is an example of direct requests via sockets:
https://www.pythonforbeginners.com/python/dns-look...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question