2021-06-21 13:33:41 -04:00

1.2 KiB

DNS Interface

The DNS interface allows users to find the IP address and port of services, using DNS queries. The DNS interface is in many ways similar to an HTTP API. The major difference is in the DNS protocol.

There are lots of guides to DNS, the following list is a short reference that should help you understand the parts that are relevant to the DNS interface in Consul. Full details about the DNS protocol can be found in the RFCs: RFC 1035, RFC 6891, RFC 2782, and others.

DNS Server

The DNS interface is implemented as a DNS server using miekg/dns and the handlers for requests are in agent/dns.go.