The name stays while the address changes
DNS stands for Domain Name System. It supplies the information a browser needs to connect to a name such as orders.example.com. The browser uses a DNS resolver to obtain answers from the responsible servers, although an answer may already be cached.
When the bakery moves its ordering site, the name on its flyers and in customers’ bookmarks stays the same. The mapping to the server changes in DNS. If it still points to the previous server, requests can arrive there even though the application is already running on the new one.
A, AAAA, CNAME and MX serve different purposes
An A record contains an IPv4 address, while an AAAA record contains an IPv6 address. A CNAME points to another hostname, which is then resolved to an address. The intended destination determines which type is needed. www.example.com is also a separate hostname that needs to resolve correctly.
MX records specify which servers accept mail for a domain. Moving the bakery’s ordering site alone gives it no reason to change the records for its existing mail service.
Why someone still sees the old site
A record’s TTL specifies how long an answer may be cached. After a change, some requests may reach the new destination while others still use the previous value. The change does not become visible everywhere at once.
An incorrect destination can keep sending visitors to the wrong site. Without a suitable record, name resolution may fail. Even when DNS is correct, the application also needs a certificate that covers the requested name for the browser to accept an encrypted connection.
Check the expected records in MainPath
Under Domains, MainPath shows the expected record type, host and destination. It derives these values from the assigned server and the relevant project components, then compares them with the actual DNS values. A check mark in the status means the records match.
You can enter the displayed values at your domain provider yourself. If the zone is hosted by a supported provider and the appropriate access is connected under Connections, MainPath writes the A and CNAME records and aligns them every time you save the project. Cached answers still need time to expire after a change.