Spoofing DNS: Difference between revisions

From Public wiki of Kevin P. Inscoe
Jump to navigation Jump to search
(Created page with "If you don't have root (I do but didn't want to change /etc/resolv.conf for this) and you want to override DNS choices (spoof testing or such) I present you: <pre> $ echo "fo...")
(No difference)

Revision as of 16:09, 29 July 2022

If you don't have root (I do but didn't want to change /etc/resolv.conf for this) and you want to override DNS choices (spoof testing or such) I present you:

$ echo "foo www.google.com" >> ~/.hosts
$ HOSTALIASES=~/.hosts
$ wget foo

man hostname(7)