Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dns request scapy

from scapy.all import DNS, DNSQR, IP, sr1, UDP

dns_req = IP(dst='8.8.8.8') / UDP(dport=53) / DNS(rd=1, qd=DNSQR(qname='www.thepacketgeek.com'))
answer = sr1(dns_req, verbose=0)
Source by thepacketgeek.com #
 
PREVIOUS NEXT
Tagged: #dns #request #scapy
ADD COMMENT
Topic
Name
9+1 =