How to map all TLD request to local computer


I am a webdeveloper and I am looking for a better way to test my projects on local devices.

On my PC I have added the hostname test1.local to the /etc/hosts file, so I can access this "domain" on my pc. I can now add it to my OpenWrt "Hostnames" list with the IP of my computer as well, so that I can access the project from my android device.

Is there a way, to map all "*.local" domains to my PC's ip address, so that I don't have to add every domain to OpenWrt? I mean all requests to

  • a.local
  • b.local
  • afasfgad.local
  • vdf6efgvsdt54wg.local
  • etc.

should go to IP

1 Like