Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reverse DNS is already written into Python's Socket module.
- Reverse DNS is already written into Python's Socket module. Simply use the following:
- >>> import socket
- >>> socket.gethostbyaddr("69.59.196.211")
- ('stackoverflow.com', ['211.196.59.69.in-addr.arpa'], ['69.59.196.211'])
- One line of code is enough to make a reverse dns query in scapy, which is:
- sr1(IP(dst="8.8.8.8")/UDP()/DNS(rd=1,qd=DNSQR(qname="211.196.59.69.in-addr.arpa", qtype='PTR')))
Add Comment
Please, Sign In to add comment