Installation of DNSTake Tool in Kali Linux OS
Step 1: Use the following command to install the tool in your Kali Linux operating system.
git clone https://github.com/pwnesia/dnstake.git
Step 2: Now use the following command to move into the directory of the tool. You have to move in the directory in order to run the tool.
cd dnstake/cmd/dnstake
Step 3: Build the go file using the following command
sudo go build
Step 4: Now use the following command to run the tool.
./dnstake -h
DNSTake – Check Missing Hosted DNS Zones
DNS takeover security flaw triggers when a subdomain (write.w3wiki.org) or main domain has its authoritative name-server set to their provider like AWS, Azure, etc. but the hosted zone is been permanently removed or misplaced. Although, while requesting this DNS record, the server responses to the user as SERVFAIL error due to the misplaced zones. Here, the attacker creates the zone in place of the misplaced zone and fetches all the DNS requests to the malicious zone.