Guide · Updated

How to connect your domain to Wix, Shopify or WordPress

Connect your domain to Wix, Shopify, WordPress or a kodo store: which DNS records to add, why to keep your nameservers, and how long a .com or .lk takes.

By Mahen Jayawardana4 min read

A clothing seller setting up her online shop on a laptop, a rail of shirts behind her

The short answer

In your website builder, open its domain settings and choose to connect a domain you already own. It shows you a few DNS records, usually an A record for the domain itself and a CNAME for www.

Add those records in your domain's DNS editor here, exactly as shown. A .com usually starts working within the hour; a .lk within a few hours.

To sell online, you can also build a store with kodo and point your domain at it with the same two records.

Two ways to connect

Add the builder's records (recommended). Your domain stays on our DNS, so your business email and anything else on it keeps working, and our editor warns you before a change would break something.

Switch to the builder's nameservers. Some builders suggest this because it's one step for them. But then the builder manages all of the domain's DNS: our mailboxes stop working, and any other records have to be added again there. Only choose this if the website is all the domain is for.

  • Wix
  • Shopify
  • WordPress
  • kodo

Building a store with kodo

kodo is a Sri Lankan platform for running an online shop: you get a website store and can manage your Instagram and WhatsApp orders in one place. kodo has a free plan; using your own domain needs one of its paid plans (kodo's prices).

  1. Sign up at admin.kodo.lk and set up your store.
  2. In kodo, go to Website, then Domains. Under "Connect a domain you already own", type your domain and select Connect.
  3. kodo shows two records: an A record for @ and a CNAME record for www.
  4. Here, add both on your domain's DNS tab. Replace any A, AAAA or www records left from an old website: kodo can't connect while they're there.
  5. kodo checks every few minutes and connects the domain by itself, with HTTPS. Most .com domains connect within half an hour; a .lk takes a few hours, because the registry publishes its records.

Adding the records, step by step

  1. In your builder, find the domain settings (in Wix, Shopify and WordPress.com it's under Domains) and choose to connect an existing domain. Type your domain name.
  2. Note the records it shows. Usually an A record for @ (the domain itself) and a CNAME for www, sometimes a TXT record to prove the domain is yours.
  3. Here, open your domain and the DNS tab. Add each record with the same type, name and value. If an A record for @ is already there, change it rather than adding a second one.
  4. Read the warning, if one shows. We check what each change would affect before it's saved, and you can undo a change afterwards.
  5. Go back to the builder and press verify. If it doesn't find the records yet, wait and try again: a .lk takes a few hours.

On a .lk

The registry publishes a .lk's records, so changes take a few hours instead of minutes. A .lk holds up to 8 records, and their names can't contain underscores. That's enough for a website and email; if a builder asks for a record the registry won't take, you can point the .lk at another DNS provider's nameservers instead.

Common questions

Why does www need its own record?
Because www.yourbusiness.lk is a separate name from yourbusiness.lk. With both records, the site opens whichever one people type.
Will connecting a website affect my email?
Not if you add records. Website records (A and CNAME) and email records (MX) are separate, and our editor warns you if a change would touch your mail. Switching nameservers is what moves email.
How long until it works?
On a .com, .net or .org the records reach the registrar within seconds, and most people see the site within the hour. On a .lk, usually within a few hours.
Will connecting my domain to kodo affect my email?
No. You only change the A record and the www record, so your MX records and any mailbox you have with us stay as they are.
Can you connect it for me?
We don't make the changes in your builder, but if you're stuck, contact us with the records your builder shows and we'll tell you where they go.

Don't have the domain yet? Type your business name to see what's free.

Keep reading

All guides