/etc/hosts

A system file that maps host names to IP addresses on one machine, checked before or instead of DNS.

In more detail

Adding a line such as 127.0.0.1 staging.local makes that name resolve to your own machine. The file belongs to root, so editing it needs sudo.

Related terms

Taught in

References