# DNS search suffixes for non-internal services

**URL:** <https://community.convox.com/t/dns-search-suffixes-for-non-internal-services/701>\
**Category:** Rack (Version 3)\
**Created:** [February 20, 2020, 7:15pm UTC](https://community.convox.com/t/dns-search-suffixes-for-non-internal-services/701 "2020-02-20T19:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![julian](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/julian/32/35_2.png) [@julian](https://community.convox.com/u/julian)\
**Post date:** [February 20, 2020, 7:15pm UTC](https://community.convox.com/t/dns-search-suffixes-for-non-internal-services/701/1 "2020-02-20T19:15:57Z")

</div>

It seems from [the documentation](https://docs.convox.com/configuration/service-discovery#internal-services) and some experimentation that the DNS shortcuts for peer services, e.g. `auth.myapp.convox.local`, `auth.myapp`, `auth` are only set if the service is `internal: true`.

Is this true, and if so, is there a reason it applies only to internal services? It seems like a common use case to have a service that is used both internally and externally, and that internal traffic could stay within the VPC.

---

<div class="post-metadata">

**Author:** ![nathan.f77](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/nathan.f77/32/256_2.png) [@nathan.f77](https://community.convox.com/u/nathan.f77)\
**Post date:** [February 12, 2025, 2:26am UTC](https://community.convox.com/t/dns-search-suffixes-for-non-internal-services/701/2 "2025-02-12T02:26:18Z")

</div>

Hi @julian, sorry to post on a very old thread, but did you ever figure this out? I really need this as well - a web service that needs to be publically available and also accessed through an internal load balancer from the VPC.

---

<div class="post-metadata">

**Author:** ![Nick-Convox](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/nick-convox/32/250_2.png) [@Nick-Convox](https://community.convox.com/u/Nick-Convox)\
**Post date:** [February 24, 2025, 8:07pm UTC](https://community.convox.com/t/dns-search-suffixes-for-non-internal-services/701/3 "2025-02-24T20:07:30Z")

</div>

Hey @nathan.f77

For this you can simply use the k8s domain.

`<service-name>.<namespace>.svc.cluster.local`

mapped to Convox this would be:  
`<convox-service-name>.<rackName-appName>.svc.cluster.local`

e.g. for this basic nodejs app:

```auto
environment:
  - PORT=3000
services:
  web:
    domain: ${HOST}
    build: .
    port: 3000

```

You can exec into a secondary application and access the web service:

```sh
convox exec web sh -a nodejs-2 -r test-22425

/usr/src/app# curl web.test-22425-nodejs.svc.cluster.local:3000
Hello Convox!
I'm: nodejs
Build:BGXJJNPGXPE
Release: RVWFOWVCWJH
running on: test-22425

```

I hope this helps.
