What is DNS?
You type a site name, and your device needs a numeric address before it can connect. DNS, the Domain Name System, supplies that address. The same system tells mail servers where to deliver a domain’s email and records which name servers hold the domain’s data, so most “the site has moved but I still see the old one” questions begin here.
What happens when your device looks up a name
Your device rarely does the work itself. It hands the question to a recursive resolver, usually one run by your provider or by a public DNS service. If the resolver has no cached answer, it follows the chain of delegation: the root servers refer it to the servers for the top-level domain, and those refer it to the authoritative servers for the domain. The authoritative servers publish the zone, meaning the actual records, and the resolver passes the relevant answer back to you.
On the domain owner’s side two organisations can be involved. The registrar records which name servers the domain is delegated to. The DNS operator runs those name servers and hosts the records. They may be one company or two, and knowing which is which tells you where a change has to be made.
Why you still see the old address after a change
Every record carries a time to live, or TTL, which tells resolvers how long they may keep an answer. Until it runs out, a resolver goes on serving the copy it already has. Resolvers can also cache some negative answers, such as “this name does not exist”, so a record you have just created can look missing to someone who asked a little too early. This is why different users may see different results shortly after a record is added or changed.
Be clear about which change you made. Editing an A record on the existing authoritative servers changes zone data. Altering the name servers at the registrar changes delegation and hands the whole domain to a different set of servers. These are distinct operations, and each is cached separately.
The record types you will meet most often
An A record maps a name to an IPv4 address and an AAAA record maps it to an IPv6 address. A name does not have to point to just one server: it can return several addresses. MX identifies the mail exchangers for a domain, NS identifies its authoritative name servers, CNAME makes one name an alias of another, and TXT carries text used for purposes such as domain verification or mail authentication.
Always ask for the record type you care about. A working MX record says nothing about whether the website is reachable, and a correct A record says nothing about mail.
Moving a site without breaking email
If only the web server changes, updating the address records may be enough. If you also change DNS providers, copy the MX, TXT and other records you rely on to the new provider before you switch delegation. Missing mail records can interrupt delivery even though the website opens normally, and the gap often goes unnoticed until someone complains about lost messages.
A new site does not open: how far DNS can take you
Query the A and AAAA records for the exact name and find out which name servers are authoritative. Then compare their answers with those of one or more recursive resolvers. If the authoritative answer is new but a resolver still returns the old one, caching is the likely explanation and waiting for the TTL is the fix. If the authoritative answer itself is wrong, check the zone and the delegation. When you contact support, give the exact name, record type, resolver and time of the test.
Once DNS returns the expected address, stop changing DNS. A DNS answer only describes naming data. It cannot prove that the server accepts connections, has a valid TLS certificate or runs a healthy application. Investigate network reachability, the server response, TLS and application errors as separate layers, so that you do not rewrite correct records to fix a web-server problem.
What encrypted DNS and DNSSEC each protect
Traditional DNS queries between your device and its resolver are generally unencrypted. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt that leg of the journey, although the resolver you chose still sees every query it answers. The comparison of DoH and DoT covers the differences. DNSSEC solves another problem: it lets a resolver verify that signed DNS data is authentic when the chain of trust is valid. It does not encrypt the query and it does not make a website safe.
Encryption also leaves the choice of resolver open. A browser, the operating system and a VPN can each use different DNS settings, so your queries may go somewhere you did not expect. The guide to what a DNS leak test observes explains how to find out. The protocol foundations are documented in RFC 1034 and RFC 1035.