You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a SRV query with dig I get the expected results for a service registered with consul, e.g.:
$ dig elasticsearch.service.consul SRV
; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> elasticsearch.service.consul SRV
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4673
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;elasticsearch.service.consul. IN SRV
;; ANSWER SECTION:
elasticsearch.service.consul. 0 IN SRV 1 1 9200 ant-005.node.ecs-dev.consul.
;; ADDITIONAL SECTION:
ant-005.node.ecs-dev.consul. 0 IN A 10.50.80.36
;; Query time: 5 msec
;; SERVER: 10.50.80.217#53(10.50.80.217)
;; WHEN: Sun Jun 14 11:28:42 PDT 2015
;; MSG SIZE rcvd: 164
Note the IP address of 10.50.80.36. If I do the same query without SRV I always get the IP address of the current consul master (10.50.80.217) answering the DNS query, e.g.:
$ dig elasticsearch.service.consul
; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> elasticsearch.service.consul
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37955
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;elasticsearch.service.consul. IN A
;; ANSWER SECTION:
elasticsearch.service.consul. 0 IN A 10.50.80.217
;; Query time: 2 msec
;; SERVER: 10.50.80.217#53(10.50.80.217)
;; WHEN: Sun Jun 14 11:28:52 PDT 2015
;; MSG SIZE rcvd: 62
And by the way, I also get the IP address of the consul master for all non-registered services as well:
$ dig i-do-not-exist.service.consul
; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> i-do-not-exist.service.consul
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18972
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;i-do-not-exist.service.consul. IN A
;; ANSWER SECTION:
i-do-not-exist.service.consul. 0 IN A 10.50.80.217
;; Query time: 2 msec
;; SERVER: 10.50.80.217#53(10.50.80.217)
;; WHEN: Sun Jun 14 11:34:23 PDT 2015
;; MSG SIZE rcvd: 63
Is that a known issue or a mis-configuration somewhere? This happens inside of PanteraS using consul 0.5.2, if that matters...
The text was updated successfully, but these errors were encountered:
When doing a
SRV
query withdig
I get the expected results for a service registered withconsul
, e.g.:Note the IP address of
10.50.80.36
. If I do the same query withoutSRV
I always get the IP address of the current consul master (10.50.80.217
) answering the DNS query, e.g.:And by the way, I also get the IP address of the consul master for all non-registered services as well:
Is that a known issue or a mis-configuration somewhere? This happens inside of
PanteraS
using consul 0.5.2, if that matters...The text was updated successfully, but these errors were encountered: