PRÁCTICA etc/hosts
Consiste en que cuando accedas a por ejemplo www.marca.com te
redireccione a www.google.es:
- En la terminal escribimos: gedit /etc/hosts
-
Este
es el archivo /etc/hosts
127.0.0.1 localhost
127.0.1.1 dinux
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
- En la terminal escribimos ping www.marca.com
- Introducimos la IP correspondiente a www.marca.com y la dirección
www.google.es en el archivo: /etc/host
- Lo dejaríamos así:
127.0.0.1 localhost
127.0.1.1 dinux
193.110.128.199 www.google.es
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters