Assume I have a VM running on OSX with private IP 10.0.0.1 which can be accessed from the host machine.
I was wondering how can I map a pseudo domain, *.app.dev
, to the private IP on my host machine so that on my host machine I can resolve the domain *.app.dev
to 10.0.0.1.
The purpose of this setup is to have virtual environment for development and not pollute my host machine with unnecessary packages and services.
edit: I realize that /etc/hosts
can accomplish non wildcard domain names, I should have been more clear and mention wildcard domain names.