Based upon the DNS query output below, select the answers below which are true statements. (select three)

Based upon the DNS query output below, select the answers below which are true statements. (select three)

A . the retail service is currently unhealthy and no nodes are available
B. the retail service is running on the same host that has been queried
C. the retail service is running and is available
D. there is a single, healthy host running the retail service
E. the retail service is running on port 8600

Answer: B,C,D

Explanation:

The dig command, which is a DNS query tool, was executed on a local Consul server, hence the 127.0.0.1 in the initial command executed. The command was run against port 8600, since that is the default port that Consul listens to for DNS queries.

Based on the answer section, you can see that a single response, which indicates that the retail service is running on 127.0.0.1 – the same host as the dig command was run against. In addition, the fact that an answer was returned indicates that the service is up and running and passing any associated health checks since Consul will not return unhealthy hosts to a DNS query. https://learn.hashicorp.com/consul/getting-started/services#dns-interface

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments