fresh-angle-76971
07/08/2025, 8:16 AMdeploy.frontend → Ingress: http://<project>.local.demo.garden
. I'm using garden version 0.14.4microscopic-river-74022
07/08/2025, 8:16 AMmicroscopic-river-74022
07/08/2025, 8:16 AMNS_ERROR_UNKNOWN_HOST
when trying to access <project>.local.demo.garden
but localhost:port
works, it means your system isn't resolving the *.local.demo.garden
domain to 127.0.0.1
as intended.
By default, Garden's *.local.demo.garden
domains should resolve to 127.0.0.1
via their DNS provider for convenience. However, some network setups or routers can interfere with this, especially on macOS. If DNS resolution fails, you need to manually add an entry to your /etc/hosts
file.
To fix this on macOS:
1. Open your terminal.
2. Edit your /etc/hosts
file as an administrator:
sudo vim /etc/hosts
(You can use any editor you prefer.)
3. Add a line like this (replace <project>
with your actual project name):
127.0.0.1 <project>.local.demo.garden
4. Save the file.
Now, try accessing `<http://.local.demo.garden`> in your browser again. This should resolve the issue and direct traffic to your local service as expected.
For more details, see the relevant documentation: [Update hostfile (only if needed)]().
If you use multiple subdomains, you can add additional lines or use a wildcard if your system supports it (most /etc/hosts
do not support wildcards, so you need to add each subdomain you use).
Let me know if you need further help!
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
07/08/2025, 8:16 AMfresh-angle-76971
07/08/2025, 1:22 PM/etc/hosts