sudo nano /etc/hosts

Category: Self-Hosting

sudo nano /etc/hosts

Edit the local hosts file to add custom hostname-to-IP mappings (e.g. for local dev or internal

Edit the local hosts file to add custom mappings — like pointing 'db.local' to a server IP for internal use without DNS setup.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.