dns command allows you add and remove hostname mappings to your local apps. It modifies
your local hosts file and does require administrative privileges.
||Adds a hostname map that points to your local app|
||Removes a hostname map that points to your local app|
||Lists the registered hostnames for your local app|
add subcommand adds adds a hostname map to your local hosts file that points to the IP of your running app.
# Pattern nanobox dns add <local | dry-run> <hostname> # Example nanobox dns add local myapp.dev
rm subcommand removes a hostname map from your local hosts file. The provided hostname much be an exact match of a hostname in your local hosts file in order for the removal to be successful.
# Pattern nanobox dns rm <hostname> # Example nanobox dns rm myapp.dev
ls subcommand lists all the hostnames registered for your local app.
nanobox dns ls <local | dry-run>
Reach out to firstname.lastname@example.org and we'll try to help.