Skip to content

Instantly share code, notes, and snippets.

View anibalpacheco's full-sized avatar

Aníbal Pacheco anibalpacheco

View GitHub Profile
@tinogomes
tinogomes / DNS_TO_LOCALHOST.markdown
Last active November 13, 2024 15:10
Public DNS Pointing to localhost (127.0.0.1)

Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)

The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.

Example:

# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com