title: AWS ECS service discovery in host mode only allows SRV records
body: <p>I have a few services running in aws ecs which need access to the internet.  These services will be running single instances.  Each of the internet facing services will have a one-to-one mapping between service name and ec2 private ip address.  Other services within the VPC need to discover the internet facing services with service discovery.  All services are run in aws ecs using host mode.  Host mode does not allow me to create A DNS records.  I can only create SRV records.  </p>
  
  <p>All services are written in .net core 3.0.</p>
  
  <p>Is there a way to locate the ip address from a SRV record in a similar manner to simple DNS lookup?  for example Host=my-service.myprivatenamespace</p>
  
  <p>Things I have tried:</p>
  
  <ol>
  <li>I can use the aws .net sdk to look up the ip address given a few queries.  This was becoming cumbersome.  I was hoping for a simple A record DNS lookup approach.</li>
  <li>I have read the documentation for Route 52, ECS and Cloud Map but was unable to find a solution.</li>
  </ol>
  
  <p>Some cost constraints:</p>
  
  <ol>
  <li>Fargate allows A records but costs too much - I will not use Fargate</li>
  <li>ECS awsvpc network mode allows A DNS records but requires the added cost of a Nat Gateway to access the internet - I will not use awsvpc.</li>
  </ol>
  
  <p>It seems that AWS is considering A records for host mode.  Maybe I just need to wait a bit longer...</p>
  
  <p><a href="https://github.com/aws/containers-roadmap/issues/279" rel="nofollow noreferrer">https://github.com/aws/containers-roadmap/issues/279</a></p>