menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

How DNS Wo...
source image

Dev

2d

read

102

img
dot

Image Credit: Dev

How DNS Works (Recursive Resolution and Stub Resolvers)

  • DNS (Domain Name System) translates human-readable names to IP addresses when accessing web addresses or service names.
  • The process involves a stub resolver sending queries to a recursive DNS resolver, which then iterates through root, TLD, and authoritative nameservers.
  • Stub resolvers forward queries to recursive resolvers, which return cached results or perform full lookups.
  • System DNS settings control the resolver used at the system level, with options like /etc/resolv.conf on Unix/Linux or systemd-resolved for modern Linux systems.
  • Consul, a service networking solution, offers a DNS interface for service discovery, where registered services can be resolved via DNS queries.
  • Consul's DNS interface allows resolving services like 'web' by querying 'web.service.consul' and responds with IP addresses for healthy instances.
  • Consul's DNS supports SRV records, providing port numbers along with the service address.
  • Consul is beneficial in dynamic, microservices-based environments for features like dynamic service discovery, cross-data center discovery, and health checks.
  • LiveAPI simplifies documentation of backend APIs by generating interactive API documentation for easy search and execution directly from the browser.
  • With LiveAPI, users can quickly document all backend APIs and ease the burden of manual documentation creation.

Read Full Article

like

6 Likes

For uninterrupted reading, download the app