Handling DNS based InApp Host redirect

How can i achieve this for NS8 modules,

127.0.0.1 hostname.domain.tld
127.0.0.1 hostname2.domain.tld

IF the Given App supports handling this.

How could something like this be implemented within the confines of NS8.

Remember its not port based, and all are listening to port 80

hello @davidep any ideas on

I’m not sure I understand the question. What are you trying to achieve? What is the original issue?

According to this, Multitenant Setup · frappe/bench Wiki (github.com)
Erpnext supports multitenancy eployment, using a single isntance installation. which will create a separate DB for the new isntance, and copy all revelevant apps and configs, to the new instance

there are 2 was this can be handled.

the fisrt one is port based handling. where instance 1 is on port 8000, instance 2 on port 8002 etc.

so that i can point domain1.tld to first port and domain2.tld to second port.

this is great, without the need of installing multiple erpnet instances, especially for staging and prodcution use case.

even at the moment, if you go inside the eprnext container, and you run the command, benh new-site, sitename you shoudl be able to have a new, seprate isntance of eprenxt configured by the system.

the challenge is, how do we expose this new instance within the confines of NS8.

dynamically, for the user.

A similar answer will also help me with bigcapital, which also supports the same.