Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
module to do DNS queries
#3
yeah, the actual network i/o is not hard. what i want to avoid is building and interpreting the DNS data records. i did mention that the one module i did see long ago let the caller do the network i/o (supposedly for cases of specialized network access or layering) and did construction and interpretation of the data. there was a function that you would pass a description of the request you wanted to make and it would return the data to send to the DNS server. there was another function that you would pass the reply you got from the DNS server and it work return a dictionary of a breakdown of that reply. i did not look to see, but supposedly the data would be a bytearray.

i would not need threading. i could send a bunch of DNS queries and work with the replies when they arrive back. maybe more would be sent as a result. then when the desired results had arrived the code could go to the final wait stage and wait until all replies are received or a timeout had run out.

one script i plan to do is a query that follows every NS record and queries every unique server to accumulate all possible answers for a given query and where they come from.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
module to do DNS queries - by Skaperen - Jan-01-2019, 03:36 AM
RE: module to do DNS queries - by Larz60+ - Jan-01-2019, 03:52 AM
RE: module to do DNS queries - by Skaperen - Jan-01-2019, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  module for DNS queries Skaperen 7 3,856 Jan-21-2018, 04:18 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020