What is DNS?
Every time someone types your domain, a chain of lookups finds the server behind it. The four record types worth knowing, what TTL means, and why a new domain can take a while to work.

Key takeaways
- DNS is the internet's directory: it maps names like www.myshop.com to the addresses of the servers that host them.
- A and CNAME records point a name at a host; TXT records prove ownership; MX records route email. Changing the wrong one can break your email.
- DNS changes spread as cached answers expire, usually within minutes but sometimes up to 48 hours.
Every domain on the internet depends on DNS (the Domain Name System), the directory that turns a human-friendly name like `www.myshop.com` into the numeric address of the server that hosts it. Your browser asks DNS before it can load anything, and when you connect a custom domain to an app, what you are really doing is editing that domain's DNS records.
An everyday example: your phone's contacts
You tap "Mom" and your phone dials a number you have never memorized. If she changes her number, you update the contact once and every call still works. DNS is a contacts list for the whole internet. Names stay the same; the addresses behind them can change. When your app moves to a new host, you update one record and visitors keep typing the same domain.
The lookup is a short chain. Your device asks a resolver (usually run by your internet provider or a public service), which asks the servers for `.com`, which point to the nameservers for `myshop.com`, which hold the actual records. Each answer is cached along the way, which keeps the web fast and explains the delays below.
The record types you will actually meet
- A / AAAA: name to an IP address (IPv4 / IPv6). Example: `myshop.com` to `203.0.113.10`.
- CNAME: name to another name. Example: `www` to `myshop.startbase.app`. The host can change its IPs without you touching anything.
- TXT: free text, used to prove you own a domain to services like Google Search Console and for email anti-spoofing settings (SPF, DKIM, DMARC).
- MX: where email for the domain is delivered. Leave these alone when connecting a website, or your inbox stops receiving.
Each record has a TTL (time to live) in seconds: how long others may cache the answer. 3600 means an hour. Lowering it to 300 a day before a planned move makes the switch spread faster.
Why it matters when building with Startbase
Every published Startbase app gets a `*.startbase.app` address with no DNS work at all. On paid plans you can add your own domain: after the first publish, open Custom domain in the Publish panel, enter something like `www.yourdomain.com`, and copy the record name and target into the DNS settings at your registrar. Startbase checks automatically and issues the HTTPS certificate once it finds the record. A root domain (`yourdomain.com`) works only when its DNS is hosted on Cloudflare; otherwise, connect `www` and forward the root to it at your registrar (custom domain docs). The step-by-step guide is how to connect a custom domain.
I connected www.myclub.com to my published app. Update everything in the project that still uses the old startbase.app address (share links, the sitemap, Open Graph tags and any auth redirect URLs) to use https://www.myclub.com, and list each change.
Why a new record does not work instantly
Resolvers around the world hold cached answers until their TTL runs out. So after you add a record, some visitors see the new site while others still get "site not found." Most DNS changes are picked up within minutes, though some take up to 48 hours. Different results on your phone (mobile data) and laptop (home Wi-Fi) during that window are normal. Tools that query DNS from several countries show how far the change has spread. Once it settles, add the TXT record Google Search Console asks for, so you can submit your sitemap (see SEO for your app).
Common confusions
- Registrar, DNS host and web host can be three companies. You might buy the domain at one, manage DNS at another, and host the app on Startbase.
- "Domain forwarding" is not DNS. It is a redirect service some registrars offer, handy for sending the root domain to `www`.
- A CNAME cannot sit on a root domain under the DNS rules, which is why root domains need special support from the DNS host.
Frequently asked questions
How long does DNS take to update?
Usually minutes. Because of caching, it can take up to 48 hours to reach every network. Lowering the TTL before a planned change shortens the wait.
Will changing DNS break my email?
Not if you only add or edit the record for the website, such as the www CNAME. Email depends on MX and TXT records; leave those untouched.
Where do I edit my DNS records?
Wherever your domain's nameservers point, usually the registrar you bought it from. If you moved DNS to a service like Cloudflare, edit it there instead.

