Сеть6 мин чтения
DNS records, explained once and properly
A, AAAA, CNAME, SRV, TXT and MX, what each is for, and why your change has not taken effect yet.
Эта статья пока на английском. Мы её переводим.
DNS is a lookup table with a cache in front of it, and nearly every confusing thing about it is the cache. The records themselves are simple, and there are only a handful you will ever create.
The records you will use
- A: a name to an IPv4 address. The common case.
- AAAA: the same, for IPv6.
- CNAME: a name to another name. Useful, and not allowed at the root of a domain.
- SRV: a service, host and port together. This is how a Minecraft address hides its port.
- TXT: arbitrary text, used for verification and mail policy.
- MX: where mail for this domain should go, which is never your game server.
Why your change has not applied
Because something between you and the authoritative server still holds the old answer, for as long as the TTL said it could. Lower the TTL before you plan a change, not after. And check with a resolver rather than by reloading the page, because your browser caches too.