Hands-on task
This task is step 8 of the course “Networking and HTTP from the terminal”
Multiple aliases for one host
Make it so that three names — web.local, api.local, and db.local — all resolve to 127.0.0.1 on this machine.
Reference:dig
What you'll practise:
- /etc/hosts
- name resolution
- getent
- append >>
- local dns