\n

Domains & DNS

What is a CNAME record?

Understand what a CNAME record does, how it differs from an A record and why it may be used for hostnames such as www.

A CNAME record is a type of DNS record that makes one hostname refer to another hostname. It is commonly used where a service wants a name such as www.example.co.uk to follow another named destination.

What does a CNAME do?

Instead of storing an IPv4 address directly, a CNAME stores another hostname as its destination. The DNS system can then continue looking up that destination.

How is a CNAME different from an A record?

At a simple level:

  • An A record points a hostname directly to an IPv4 address.
  • A CNAME record points one hostname to another hostname.

See what an A record is if you want to compare the two.

Why is www often used as an example?

A website may use a CNAME for a hostname such as www so that it follows another hostname rather than requiring a separate IP address to be entered for that name.

This is only an example. Your own DNS setup may use a different arrangement, so do not create or replace a CNAME simply because another website uses one.

When might a CNAME be relevant?

A website, verification service or other online platform may ask for a CNAME as part of its configuration. If Toolbelt Websites asks you to add or change one, use the exact hostname and destination supplied for your project.

For the wider picture, see what DNS is or how to find your DNS settings.

Last updated: 8 September 2026