Bản ghi A
Maps a domain name to an IPv4 address.
Bản ghi A là gì?
The A record is the workhorse of DNS. It tells resolvers which IPv4 address answers for a given hostname, so browsers, APIs and command-line tools can translate "example.com" into something like 93.184.216.34 and open a TCP/UDP socket to it.
Ví dụ mục zone file
example.com. 300 IN A 93.184.216.34
Trường hợp sử dụng phổ biến
- ▸Point a web hostname (apex or subdomain) at a server.
- ▸Round-robin load balancing — set multiple A records with the same name.
- ▸Failover by lowering TTL ahead of a planned cutover.
- ▸Region-aware routing via GeoDNS providers.
Lỗi phổ biến
A records cannot be used at the apex if the host has a CNAME (RFC 1034 forbids it). Use an ALIAS / ANAME if your DNS provider supports it, or flatten the CNAME to A records.
Loại bản ghi liên quan
AAAA record
Maps a domain name to an IPv6 address.
CNAME record
Aliases one hostname to another — the resolver follows it transparently.
MX record
Tells the world which mail servers receive email for a domain.
CAA record
Certificate Authority Authorization — declares which CAs are allowed to issue certs for your domain.