top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to query the dns using python, and how to analyze the passive dns data packet for ddos attack?

0 votes
467 views

Please give me some idea about how we can query the DNS
How you have divided the passive dns functioning into two parts as recursor and resolver.
Can you please give some idea about how they function, and when they are employed after the query is submitted to the pdns
How the data packet will be analyzed for ddos attack.

posted Mar 11, 2016 by Naveen Pandey

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Did not get your query at all, how it is python query. Can you describe the problem more? i.e. who is quering to whom what is the scenario, what is expected and what r u getting.

Similar Questions
+1 vote

socket.gethostbyname sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server?

I see that twisted.names allows you to do this, but, having all of twisted as dependency to my project when all I need to do is a simple DNS query seems a bit extreme. I also found pydns, but that looks fairly outdated and unmaintained.

0 votes

I have a Ubuntu server running NGINX that logs data for me. I want to write a python script that reads my customized logs and after a little rearrangement save the new data into my DB (postgresql).

The process should run about every 5 minutes and i'm expecting large chunks of data on several 5 minute windows..

My plan for achieving this is to install python on the server, write a script and add it to cron.

My question is what the simplest way to do this? should I use any python frameworks?
For my python app I'm using Django, but on this server I just need to read a file, do some manipulation and save to DB.

0 votes

Lets assume device is a computer which is connected to LAN switch and LAN switch has further links in upward.
Does a computer initiate ARP request for each destination IP ? Or it initiates ARP request only for a specific group of IPs ?

0 votes

I need to write into a file for a project which will be evaluated on the basis of time. What is the fastest way to write 200 Mb of data, accumulated as a list into a file.

Presently I am using this:

with open('index.txt','w') as f:
 f.write("".join(data))
 f.close()

where data is a list of strings which I want to dump into the index.txt file

...