Guide How to Use Consul DNS Locally on macOS

This is a guide how to use Consul’s DNS service from your local macOS machine. Test resolution by hand Run this command to see if you can communicate with consul correctly and it resolves domain names for you: dig vault.service.consul @$CONSUL_IP -p 8600 As response you should get the A record that will look similar to this (look for ANSWER SECTION): ;; ANSWER SECTION: vault.service.consul. 0 IN A 123.