How to host virtual domain on xampp without hosts file?

I've somewhat successfully created a virtual domain in xampp. But for that I had to edit the hosts file in my client pc.
So is it possible to create a virtual domain without editing the hosts file?
Maybe by adding the list of ips and domains in the xampp server and adding its ip in the client dns?
I searched a lot finding nothing helpful, so I'm asking here.

Tanmay Das (author) 3 years ago


But is it possible to make a dns server in apache in xampp?

mh76dk3 years ago

If you do not want to edit the hostfile I can only think of one other option for ip/name translation and that is running your own dns-server.