January 2020
Intermediate to advanced
530 pages
11h 11m
English
Switch to the root user and navigate to your hosts file. By default, it should be at the /etc/hosts location.
Open the file with a text editor such as nano or vim. Add the two banka.com and bankb.com domain to the hosts file, as follows:
127.0.0.1 localhost127.0.1.1 ishan-Inspiron-3537127.0.1.1 banka.com banka127.0.1.1 bankb.com bankb# The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters
This will route all outgoing requests to the banka.com and bankb.com domains to our localhost.
Read now
Unlock full access