An A record (Address Record) is a DNS record type that maps a domain name to an IPv4 address. When you type "example.com" into your browser, the DNS system uses the A record to find the server's IP address - essentially looking up the "street address" of the website.
Among the various DNS record types, the A record is the most fundamental and frequently used. It works alongside AAAA records (for IPv6 addresses) and CNAME records (which point to another domain name) as the core building blocks of DNS.
Setting up an A record is straightforward: you specify a domain name and an IP address, such as "example.com -> 93.184.216.34". You can create multiple A records for the same domain, enabling DNS round-robin load balancing across several servers.
When setting up a custom domain for a URL shortening service, understanding A records is essential. To point your domain (e.g., link.mycompany.com) to the shortening service, you configure either an A record or CNAME record in your DNS settings. A records point directly to an IP address, while CNAME records point to a domain name and automatically follow IP changes.
Every A record has a TTL (Time to Live) value that determines how long DNS resolvers cache the record. A TTL of 3600 means the record is cached for one hour. Shorter TTLs allow faster DNS propagation but increase query volume. Related books are available on Amazon.