A DNS Attack is a type of cyber attack that exploits the weakness or vulnerability in a Domain name system.…