What happens when someone types my domain into a browser?
The browser does not know where your site lives. It only knows the name. Mapping a name to the matching IP address is called a DNS lookup [1]. The visitor never sees it.
- The browser asks a resolver A resolver is a DNS server run by the visitor's internet provider or a public service. It is asked for the address of your domain.
- The resolver finds your records DNS is organised as a tree of names, and each name holds a set of information [2]. The resolver walks that tree until it reaches the servers that hold your domain's records.
- The answer comes back and is kept for a while The resolver returns the IP address and keeps a copy for the length of the record's TTL (time to live), which controls how long a record is cached [6].
- The browser connects With the IP address, the browser opens a connection to your server and asks for the page.
Which DNS records does a small business website need?
A small business website usually needs these four kinds of record. Your web host, email provider and other services each tell you which values to add.
| Record | What it does | Example use |
|---|---|---|
| A | Maps a name to an IPv4 address [3] | Points example.com at your web server |
| CNAME | Makes one name an alias of another name [5] | Points www at your website platform. See CNAME record |
| MX | Names the host that receives your email [5] | Sends mail to Google Workspace or Microsoft 365. See MX record |
| TXT | Holds free text that other services read [3] | Proof of domain ownership, and email checks such as SPF record |
example.com. 3600 IN A 192.0.2.10
www.example.com. 3600 IN CNAME example.com.
example.com. 3600 IN MX 10 mail.example.com.Why does a DNS change take hours to show up?
Every record carries a TTL, and a longer TTL means updates to your records take longer to go into effect [6]. If a resolver saved your old record an hour ago with a long TTL, it keeps handing out the old answer until that time runs out. Different visitors can therefore see different results for a while.
Moving a site with a one-hour TTL
Say you move your site to a new host and the TTL on your A record is 3600 seconds (one hour). A resolver that cached the old address at 10:00 keeps using it until 11:00. If you lower the TTL to a few minutes a day before the move, the switch shows up much faster.
Who runs DNS for a .sg domain, and where do I edit my records?
SGNIC is the registry for .sg domain names. Its own site says it provides Internet registry and information services to support the security, stability and resiliency of the DNS in Singapore [4]. You register a .sg or .com.sg name through a registrar, and the registrar or a separate DNS host holds the records you edit. Check which one your domain's nameservers point to, because edits only count at the DNS host that is actually answering.
For buying a name and picking a registrar, see Domain names in Singapore. Once your records are set, web hosting and an SSL certificate sit on top of them.
Questions people ask
What is DNS in simple words?
DNS is the address book of the internet. It keeps a list of domain names and the IP addresses attached to them, so a browser can turn a name such as example.com into a number and find your site [1].
Is DNS the same as my domain name?
No. The domain name is the name you own. DNS is the system that stores the records for that name, such as where the website is and where email goes [1][2].
Do I need to know DNS to run a website?
Not in depth. You mostly paste a few values from your host or email provider into the right records, such as an A, CNAME or MX record. Knowing what each one does helps you spot a mistake.
Pages that link here
301 redirect, A record, CDN, CNAME record, DKIM, DMARC, DNS propagation, Domain name, Domain registrar, Email deliverability, Google Search Console, Google Workspace, HTTPS, MX record, SMTP, SPF record, SSL certificate, TLS, Web application firewall, Web hosting, Website builder
Blog posts that use this term
See also
- A record An A record is a DNS entry that maps a domain name to an IPv4 address, so browsers know which server to contact.
- CNAME record A CNAME record is a DNS entry that makes one domain name an alias of another, so www.yoursite.com can follow wherever another name points.
- MX record An MX record is a DNS entry that names the mail server that receives email sent to your domain.
- Domain name A domain name is your website's address on the internet, such as example.com.sg, that people type to reach your site and send email to you.
- SSL certificate An SSL certificate is a digital file that proves your website is who it claims to be and lets browsers connect to it over encrypted HTTPS.
- SPF record An SPF record is a line of text in your domain's DNS that lists which mail servers are allowed to send email using your domain name.
References
- DNS (Glossary), MDN Web Docs. Read 27/11/2026.
DNS maintains a list of domain names along with the resources, such as IP addresses, that are associated with them.
- RFC 1034: Domain Names, Concepts and Facilities, IETF. Read 27/11/2026.
The domain name space is a tree structure. Each node and leaf on the tree corresponds to a resource set (which may be empty).
- DNS record types, Cloudflare Docs. Read 27/11/2026.
The content of the records is an IP address (IPv4 for A or IPv6 for AAAA).
- Welcome to SGNIC, SGNIC. Read 27/11/2026.
SGNIC is committed to providing Internet registry and information services in an efficient, effective and reliable manner
- RFC 1035: Domain Names, Implementation and Specification, IETF. Read 27/11/2026.
CNAME A <domain-name> which specifies the canonical or primary name for the owner. The owner name is an alias.
- Time to Live (TTL), Cloudflare Docs. Read 27/11/2026.
a longer TTL also means that updates to your records take longer to go into effect.