External service as an alias - recursors

382 views
Skip to first unread message

Nils Otto Johansen

unread,
Sep 9, 2015, 3:45:10 AM9/9/15
to Consul

Hello.

We use Consul for service descovery in our docker environment.
All new docker containers (which exposes a port) is discovered by gilderlabs/registrator, and registered in Consul as a service.

Now, I would like to implement some kind of an alias-system for discovering services on a more permanent name.
This name is not known at startup, and will e.g be used for our A/B-deployment workflow.

I have tested the external service by registering services in the catalog.
As long as I am not having any recursor dns-servers set, the DNS interface returns only the CNAME record.

This is understandable for external services, but my usecase is an alias for a internal service.

Shouldn't consul recurse locally for external services?
I can of course configure local dns server as a recursor, but it doesn't feel right.

regards
Nils Otto Johansen

Armon Dadgar

unread,
Sep 9, 2015, 6:26:48 PM9/9/15
to consu...@googlegroups.com, Nils Otto Johansen
Hey Nils,

Could you please file a ticket against Consul for this? The issue is that Consul does not
ever expect the CNAME to be a valid Consul record, so we don’t handle this case. e.g. We don’t
parse it to check if it could potentially be resolved by the same server.

Thanks!

Best Regards,
Armon Dadgar
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/c1665769-7c44-491f-9432-04d190d1daaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nils Otto Johansen

unread,
Sep 10, 2015, 9:01:13 AM9/10/15
to Armon Dadgar, consu...@googlegroups.com
Thank you!

I have created the ticket, including examples: 

Reply all
Reply to author
Forward
0 new messages