DNS lookup fails using consul on windows box (from demo)

601 views
Skip to first unread message

Mark Risen

unread,
Sep 9, 2016, 4:26:48 PM9/9/16
to Consul, mri...@starbucks.com
This is probably something dumb I missed but I can't figure it out.

I'm going through the getting started pages and am at the part when I'm trying to query the service through the DNS API and it's not working.

Running a console in admin mode, I started a consul server with consul agent -dev -config-dir Configuration
The consul server starts up and finds the Web service. I can also see the DNS port is 8600
In a second consul in admin mode, I start nslookup, changed the server with server 127.0.0.1 and set the port with set port=8600.
I can see the server changed to 127.0.0.1 and I can see the port changed with the set all command
Then, I attempt a query with Web.service.consul but always get back *** localhost can't find service.Web.consul: No response from server.
I've looked at my firewall settings and I can see consul set there. I'm not sure what to look for at this point.
I've also tried telnet . 8600 but could not open a connection on that port, though I'm not sure if that would actually work.

Any ideas on what I am missing?
 .Mark

Mark Risen

unread,
Sep 9, 2016, 5:12:15 PM9/9/16
to Consul, mri...@starbucks.com
Ok, first, using a . instead of an IP address does not work for telnet. When I tried telnet 127.0.0.1 8600 I did get a connection.

Next, I kept seeing dig being referenced so decided to download that tool and try it. Sure enough it works. I don't know why nslookup doesn't work though. Regardless, all is good.

Cheers!
 .Mark

Alvaro Miranda Aguilera

unread,
Sep 13, 2016, 6:47:35 PM9/13/16
to consu...@googlegroups.com, mri...@starbucks.com
hello, 

Have a look here:

They suggest couple of ways to change consul to use port 53 (the expected port)

please not that this is fine for dev, however is better put a dns server on front of consul for production.

Thanks
alvaro.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/10a4b430-08b3-48b7-b1ae-69259b2ca770%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages