# Direct traffic to AWS ECS services using SRV records

**URL:** <https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [February 7, 2022, 6:38pm UTC](https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757 "2022-02-07T18:38:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaozanutto](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@joaozanutto](https://discuss.konghq.com/u/joaozanutto)\
**Post date:** [February 7, 2022, 6:38pm UTC](https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757/1 "2022-02-07T18:38:22Z")

</div>

Hey guys! In the company I work at, we have a couple of services running on AWS ECS, and in our DNS we have SRV records pointing to them.

I want to create an Ingress resource that will direct traffic to those services using the DNS SRV records, is that possible?

---

<div class="post-metadata">

**Author:** ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)\
**Post date:** [February 7, 2022, 7:02pm UTC](https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757/2 "2022-02-07T19:02:43Z")

</div>

This should work using an ExternalName Service. Kong’s DNS resolution looks at SRV records automatically: [Load Balancing Reference - v2.7.x | Kong Docs](https://docs.konghq.com/gateway/2.7.x/reference/loadbalancing/#srv-records)

---

<div class="post-metadata">

**Author:** ![joaozanutto](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@joaozanutto](https://discuss.konghq.com/u/joaozanutto)\
**Post date:** [February 7, 2022, 8:19pm UTC](https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757/3 "2022-02-07T20:19:15Z")

</div>

> [@traines](#):
>
> This should work using an ExternalName

So, I have a hosted zone named `oln` and the `admin` service inside it. Should I just reference it like this?

```auto
externalName: admin.oln

```

I have done that already but got the error message below

![image](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/b/b84fb977455bfcc83c6ef031f24e63f6db294a61.png)

---

<div class="post-metadata">

**Author:** ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)\
**Post date:** [February 14, 2022, 11:23pm UTC](https://discuss.konghq.com/t/direct-traffic-to-aws-ecs-services-using-srv-records/9757/4 "2022-02-14T23:23:02Z")

</div>

Do you see anything of interest for that hostname with KONG\_LOG\_LEVEL set to `debug`? That error is essentially a DNS resolution failure, and the proxy debug logs should indicate what happened during resolution in more detail.
