I have setup a service discovery for service on a ecs cluster, this service discovery is creating a srv DNS record on route53. It was only possible to allow a srv dns record for this service because I use bridge mode as network mode. How can resolve this srv record inside of a ecs cluster container? I used net.LookupSRV in golang but it couldn't find this record but it was able to resolve the A record of this srv record.
I use this service discovery ->
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html