I can add domain name manually to consul?

1,354 views
Skip to first unread message

Stefano C

unread,
Jul 20, 2015, 3:57:21 AM7/20/15
to consu...@googlegroups.com
HI, i need add manually a domain name to consul, instead to adda line in /etc/hosts, it's possible?

Ryan Uber

unread,
Jul 20, 2015, 4:18:18 PM7/20/15
to consu...@googlegroups.com
Hi Stefano,

Consul doesn't allow adding arbitrary hosts to its internal DNS server. If you need functionality like this, /etc/hosts should work well for a single node. If you need to serve arbitrary DNS records, one thing you can do is set up a general-purpose DNS server and configure Consul to recurse to it using the config argument "recursors". You can find more information on DNS recursors here: https://consul.io/docs/agent/options.html#_recursor.

Hope that helps!
- Ryan

On Mon, Jul 20, 2015 at 12:57 AM, Stefano C <stefano....@gmail.com> wrote:
HI, i need add manually a domain name to consul, instead to adda line in /etc/hosts, it's possible?

--
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/3c9d854a-5809-4baf-a6ce-e6e2f0c2c156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Armon Dadgar

unread,
Jul 21, 2015, 1:52:57 PM7/21/15
to consu...@googlegroups.com, Ryan Uber
Hey Stefano,

In some cases, you can use the “external services” functionality of Consul if it
fits your needs as well. Take a look here for a guide: https://consul.io/docs/guides/external.html

Best Regards,
Armon Dadgar
Reply all
Reply to author
Forward
0 new messages