Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This seems like an improvement over my current solution in that it can keep multiple projects open simultaneously and route to each of them, but does add more complexity to the setup.

I'm using Dnsmasq (https://thekelleys.org.uk/dnsmasq/doc.html) to map anything at .lo to the currently running project, like so:

  brew install dnsmasq
  sh -c 'echo "address=/.lo/127.0.0.1\naddress=/.lo/::1\n" > /usr/local/etc/dnsmasq.conf'
  sudo mkdir -p /etc/resolver
  sudo sh -c 'echo "nameserver 127.0.0.1\n" > /etc/resolver/lo'
  sudo brew services start dnsmasq
Would love to expand on that to route to specific projects, but since it's working "well enough" I probably won't touch that for the foreseeable future.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: