Sign in
Sign in
Ketan Jadhav
Follow
—
Listen
Share
DNS stands for Domain Name System. It is a system that translates domain names (such as www.example.com) into IP addresses (such as 192.168.2.1) that computers can use to locate and communicate with web servers and other network services.
When you enter a domain name into your web browser, your computer sends a DNS query to a DNS server that is responsible for resolving the domain name into an IP address. Once the IP address is obtained, your computer can use it to establish a connection with the web server that hosts the website associated with that domain name.
DNS is a critical component of the Internet infrastructure and is essential for the proper functioning of the World Wide Web.
A DNS attack is a type of cyber attack that targets the Domain Name System (DNS) infrastructure in order to disrupt or compromise the availability, integrity, or confidentiality of DNS services.
1. Update python and install scapy library
2. Create a file name dns.py
3. Insert the code below:
4. Running the script/program: (sudo for root privilege’s)
This line imports various modules such as os, logging, scapy.all and netfilterqueue.
This line clears the console screen. It uses cls for Windows and clear for Unix-based systems.
Prints the above header before attack
Disclaimer: It’s important to note that performing DOS attacks is illegal and unethical, and can potentially cause significant harm to systems and networks. This code should only be used for educational and ethical purposes, such as testing the resilience of your own systems or with explicit permission from the system owner.
medium.com
medium.com
medium.com
medium.com
—
—
This is Ketan from India who loves writing about tech, coding, and design (and more!).
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams

More Stories
Anatomy of a Scam
Climate and Environmental Sustainability Within the IETF and IRTF
From Commitments to Practice: Internet Society’s Priorities for WSIS+20 Implementation