Hands-on task
Give a site a name
A new shop is already running on this machine on port 8080, but nobody has created a DNS record for its name yet. The team wants to open the storefront by name right now. Make the name shop.test lead to the address 127.0.0.1 on this machine — then curl http://shop.test:8080/ will show the shop's page.
Don't touch the lines that are already in /etc/hosts: other programs depend on them.
- /etc/hosts
- getent hosts
- curl