Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question