Connecting Your Own Domain, Step by Step

How do I connect my own domain to my BanglaCodes site?

Publish the site, then type the address into the domain button in the builder, with no http:// and no www. The box shows two records: a CNAME that points the address at us, and a TXT that proves the domain is yours. Copy both exactly into your domain company's DNS panel and press verify. It usually takes 10 to 30 minutes, and HTTPS comes on by itself.

Three things to check before you start

The job is split across two places: part of it here, part of it wherever you bought the domain. Have these three ready before you begin.

The three dots menu open at the top of the builder, with domain inside it

Have not bought a domain yet? Read the previous chapter first; where to buy one and how to pick the name are all in there.

Where the button is

  1. Open the app in the builder.
  2. Press the three dots button at the top right; domain is inside it.
  3. A small box opens with one empty field and a button to add.

Three more things turn up later in that same box:

The box that opens when you press domain: one empty field and an add button

So the whole job happens in this one place, with nothing to hunt for elsewhere.

How to type the address

Put only the name in the field, nothing else. This is where people stumble most, because you do not type all of what a browser's address bar shows you.

Exactly how it should look: aiinbangla.com. That is the whole of it.

Press add and a box opens below with two records written in it. Those two are the entire next step.

After pressing add: CNAME and TXT, both records written out exactly

The two records, and what each one does

DNS sounds heavy, but the thing itself is an address book: a list of which name points where. You have to add two lines to that book, and nothing beyond that.

RecordWhat it doesIf you leave it out
CNAMEpoints the address at us, the line that does the actual worktyping the domain opens nothing at all
TXTproves the domain is yoursa domain attached to another account before will not verify

The reason is simple: a CNAME shows that the domain points at us, but not who pointed it, and in that gap somebody could attach another person's domain to their own site.

Copy exactly what the box shows, adding and removing nothing of your own. One character out of place and the record does not work, yet nowhere will you see an error message about it.

What to do in your domain company's panel

  1. Log in to the site where you bought the domain.
  2. Look for the section called DNS, DNS Management, Advanced DNS, Zone Editor or Manage DNS. The name changes, the thing inside looks much the same everywhere.
  3. Press the Add Record or Add New Record button and a few empty fields open.
  4. Fill the fields by the rules below, then press Save or Add.
  5. Do the same again for the TXT line. With both lines in, that page is finished with.

Their names vary a little from company to company, but they do the same jobs:

One trap sends a lot of people round in circles: if the domain's nameservers point somewhere else, the record has to go there, not on the site you bought the domain from. If you cannot work out where, write one line to their support: I want to add a CNAME record on my domain, where do I add it? It is their everyday work and takes two minutes.

www or the bare address

There are two shapes of address. The one with nothing stuck on the front is called the apex or the root.

AddressWhat goes on itWhat to know
www.aiinbangla.comCNAMEevery company lets you put a CNAME on www, so it is the easy road
aiinbangla.com, the apexCNAME, or else ALIAS or ANAMEmany companies will not let you put a CNAME on the bare address

When that name already holds a record

This is where most people get stuck, and the symptom does not look like your fault.

The rule is simple: a name holds either a CNAME or an A/AAAA, never both. That is not one company's quirk, it is how DNS itself works.

The bare address almost always has an A record on it already: when you buy a domain the company parks a holding page or a redirect on it. While that record is there, the new CNAME either will not save at all, or it saves and the browser keeps showing the old page.

  1. Look at the list of records on the name you are about to use.
  2. Delete the A and AAAA records on that name.
  3. Then add the CNAME.
Before deleting, write the old record's Type and Value down somewhere. Those two values are all you need to put it back.

Press verify, then wait a little

  1. With both records in, come back to the domain box on BanglaCodes.
  2. Press verify. We read DNS to see whether the lines really are in place, and only then does the domain start showing your site.
  3. If it does not match the first time, do not panic; go and drink a cup of tea and press it again.
  4. Once it matches, type the domain into a browser and the site comes up.

After verification passes: ownership proven, the domain live, with HTTPS

That is the last step. The picture below is not a mock-up: it is a real BanglaCodes site, running at demo.nerdsx.com, set up by exactly the steps above.

A shop site running on its own domain, with its products and an order form

It opens the same way on a phone, with nothing extra to do.

The same site in a phone browser

The fee you pay once

The domain's own yearly rent is not part of this. You keep paying that to the domain company, and no hosting company can waive it.

The sites you may not host

Inside the domain box there is a small line, "sites you may not host". Press it and the full list opens. Read it once before you pay, because breaking these rules means the site comes down with no refund.

The rules list inside the domain box, which opens when you press it

An ordinary shop, portfolio, booking, school or office site touches none of this. The list exists so that nobody can wreck the reputation of the whole domain, because one bad site getting caught makes a browser suspicious of the entire hosting.

When nothing happens: symptom, cause, fix

What you seeWhat it meansWhat to do
The domain will not add at allsomething extra in the address, or the domain is already attached elsewherestrip http://, the leading www. and the trailing /, then try again
Verification never matchesthe DNS change has not spread everywhere yetpress it again after 15 minutes, and allow up to 24 hours if needed
It verified, but the site will not openthe CNAME line has the wrong Type or Valuecheck the Type really is CNAME, and match the Value character for character with the box
www works, the bare address does notthe company would not take a CNAME on the apexuse ALIAS or ANAME, or redirect the bare address to www
the CNAME will not save, or it saves and the old page still opensthat name already holds an A or AAAA recorddelete the A and AAAA on that name, then add the CNAME; leave the MX (mail) records alone
The record is in, but nothing changesthe domain's nameservers point somewhere elseput the record where the nameservers point, not where you bought it
The browser says Not securethe HTTPS padlock is still being issuedwait 15 minutes, and tell us if it takes more than an hour

After adding a domain you can also see whether it has verified, and press to verify it, from the manage screen. See Manage your site.