Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Issues accessing SRV programatically #22

Open
jogster opened this issue Jul 31, 2017 · 4 comments
Open

Issues accessing SRV programatically #22

jogster opened this issue Jul 31, 2017 · 4 comments

Comments

@jogster
Copy link

jogster commented Jul 31, 2017

I have got the service working on my cluster. I can see it register and deregister SRV records in the console for my Route53 servicediscovery.internal zone...

But I cannot get dig working to view the SRV records. Additionally I wrapped the simple go function (example access) in a main and did not get any data back.

If I insert a manual 'A' record using the aws cli I can see it using dig.

I assume there is something fundamental that I am missing? I am not using the cloudformation template but an existing cluster I had configured...

This is the command I am using:

dig <svc_name>.servicediscovery.internal SRV

How is everyone accessing the SRV record?

@jogster jogster changed the title Issues accessing SRV progrmatically Issues accessing SRV programatically Aug 15, 2017
@ruslantalpa
Copy link

on one of the ECS cluster nodes, this works for me
dig +short srv <svc_name>.servicediscovery.internal

where are you executing dig?

@javierros
Copy link
Contributor

Perhaps you're doing a query for an A record instead of a PTR record, can you try the command from ruslantalpa?

@jogster
Copy link
Author

jogster commented Oct 11, 2017 via email

@dickmao
Copy link

dickmao commented Nov 9, 2017

Did you perhaps have two clusters active each with their own hosted zone named servicediscovery.internal? The ecssd_agent code as written will only act on the first hosted zone it sees with that name, and this can result in dig not returning the srv record. At least that's what happened to me until I gave the hosted zones unique names.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants