Query services with DNS
One of the primary query interfaces for Consul is DNS. The DNS interface allows applications to make use of service discovery without any high-touch integration with Consul.
Review the documentation here to use the DNS interface.