I searched this term and didn't find my answer: "wildcard domain name in hosts"
I have a HostGator account where I create secret domains so I can build and test websites. In order to use them, I add the domain to my /etc/hosts file like:
192.168.129.3 ts.buck
192.168.129.3 www.ts.buck
I tried using the *
192.168.129.3 *.buck
but it doesn't work.
This is on my desktop, I don't have a server here. It is also for internal use only, not for the rest of the world to see or access.
It would be nice to have a simple way to use my own TLD for building test sites.