Replies to DNS queries with spoofed responses.
In order to receive DNS queries from other hosts other than your own and be therefore able to spoof the selected domain names, you’ll also need to activate either the arp.spoof or the dhcp6.spoof module.
Start the DNS spoofer in the background.
Stop the DNS spoofer in the background.
||Comma separated values of domain names to spoof.|
||IP address to map the domains to.|
||If true the module will reply to every DNS request, otherwise it will only reply to the one targeting the local pc.|
||If not empty, this hosts file will be used to map domains to IP addresses.|
Every DNS request coming to this computer for the
example.com domain will resolve to the address
> set dns.spoof.domains example.com; set dns.spoof.address 184.108.40.206; dns.spoof on
Use a hosts file instead of the
dns.spoof.* parameters for multiple mappings:
> !cat ./dns.spoof.hosts 220.127.116.11 facebook.com 18.104.22.168 cnn.com 22.214.171.124 www.google.com > set dns.spoof.hosts ./dns.spoof.hosts; dns.spoof on