Automatic Hostname IP Mapping Entry

I have a local Minikube cluster and I would like to access the services it exposes using a hostname. I have set up an NGINX Ingress for this purpose. But to be able to access my services, I need to add the hostname and the Minikube IP to /etc/hosts of my machine manually. So that means if I destroy and recreate my cluster, I have to manually do the edit to the /etc/hosts file. Is there a way to automate this?