2

Developing services on a macOS 10.14 machine, we would like to reach each different service with a subdomain (akin to what will happen in production).

Assume the machine's name is "bar", then we can access it with the bar.local url. Yet, we cannot find a way to redirect some (or all) subdomains to the same machine. E.g:

  • service1.bar.local
  • service2.bar.local

Is it possible to achieve such behaviour only using tools from the vanilla macOS 10.14 distribution, and without hardcoding the machine name in a config file (i.e., not explicitly duplicating the machine name in /etc/host)?

Ad N
  • 7,930
  • 6
  • 36
  • 80
  • I have been trying to figure this out myself. Is it possible to add Bonjour aliases? – MAH Aug 03 '19 at 07:08
  • @MAH if you are wondering it yourself, it probably means you could upvote the question to give it a bit of visibility. – Ad N Aug 03 '19 at 12:01
  • Done. I know there's an `avahi-aliases` that can work on Ubuntu. I'm hoping there's a similar thing that I can do with Bonjour. – MAH Aug 03 '19 at 15:31

0 Answers0