Skip to main content

Connect an existing domain

Not every domain is bought through Qubix. You may already own domains registered at another registrar (GoDaddy, Namecheap, reg.ru, Porkbun — anywhere), or buy them elsewhere at a better price. Qubix connects them: you enter the domain, the system checks where its DNS lives right now, and puts together a plan for pointing it at your server.

This is different from Register domain, where Qubix buys a brand-new domain for you through Namecheap. Here the domain already exists — Qubix only connects it.

There are two ways to connect a domain — use whichever suits you:

The Add domain button opens the Add domain wizard. On its first step, What to add, choose Connect an existing one. The wizard then asks what the domain is for (Domain tasks), checks the domain (Domain name), asks how the traffic reaches the server (Traffic to the server) and shows what Qubix will do on the step Plan and confirmation. After Confirm Qubix carries the plan out and waits until the domain is ready.

Before you start​

  • The domain must already be registered at some registrar. The wizard checks where its DNS is now and shows whether Qubix has a key to the account that holds the domain; when a key is needed and Qubix has none, the wizard asks for it on the step DNS access — or you set the records by hand, see Records you set by hand.
  • For the Cloudflare option you need a Cloudflare API token — usually the main key in Qubix settings → Connections → Cloudflare, or the key of another account that you give to the wizard; Qubix uses it to create the zone, or picks up a zone you already have there. For how to create the token, see Faster loading via Cloudflare. The zone can also go into another Cloudflare account if its key is saved as a company key or as your personal key — see Cloudflare account for the zone. When the zone is new, the name servers change at the registrar: at Namecheap the wizard does it itself, with the key of the Namecheap account that holds the domain — one Qubix already has, or one you give.
  • For the own-DNS option you don't need anything extra — the plan shows the A record with the IP address of your server.
  • For the Through my Cloudflare option you need access to the domain's zone in your own Cloudflare account; no key is needed — see Connect a domain through your own Cloudflare.

Step 1. Run the check​

  1. Open Domains and click Add domain. On the first step, What to add, choose the Connect an existing one card and click Next. On the step Domain tasks turn on what the domain is for — for example PWA or Postback intake — and click Next. The button stays unavailable until a task is on. A PWA and postback intake can't share one domain: with one of them on, the row of the other is dimmed and says why.
  2. On the step Domain name, enter the domain you already own (for example, mygames.click) and click Check (or press Enter).

Qubix checks the domain and shows where it is now: the registrar, the DNS, and whether Qubix already has a key to the account that holds the domain. This is the "look before you leap" step: you see the real state of the domain before choosing anything. The block and its rows are described in Add domain wizard. The Next button stays unavailable until the check has answered and the wizard can connect the domain.

Step 2. Choose how to connect​

Click Next: when the domain has a site in Qubix, the wizard moves to the step Traffic to the server. It asks How should traffic reach the server? and offers the ways, each as a choice. Through Cloudflare is marked Recommended, but the choice is yours.

Through CloudflareDirectly
What changesQubix changes the nameservers at your registrar to Cloudflare'sOne A record pointing at your server's IP
Where DNS livesMoves to Cloudflare, managed inside QubixStays at your current provider, or goes to Cloudflare — you choose under Where should the A record to the server IP go?
How it's servedThrough the Cloudflare networkStraight from your server
SSLCloudflare (automatic)Own certificate, issued automatically (Let's Encrypt)
When to chooseMost domains work this wayNeeded when the domain serves checks or third-party delivery
Cloudflare cloudorange (proxying on)gray ("DNS only") — if the zone is in Cloudflare

The choice In Cloudflare under Directly is a variant of Option A: Cloudflare only hosts the DNS, and traffic goes straight to your server — there is no edge cache and the server's address stays visible. The server itself serves the domain and issues its certificate, as in Option B.

Directly is offered only if the Direct method is among the Connection methods of your access template.

A third way, Through my Cloudflare, keeps the zone in your own Cloudflare account; it is not a choice of this step but follows from your answers — see Option C.

Option A — Via Cloudflare​

  1. On the step Traffic to the server choose Through Cloudflare. If the wizard shows the step Cloudflare account, use it to choose the account to create the zone in. See below for details.
  2. Click Next through the steps that follow. On the step Plan and confirmation the plan lists what will happen: Create the zone …, Change the name servers to Cloudflare and the A record through the cloud. Click Confirm.
  3. Qubix creates a Cloudflare zone for the domain — or picks up the one you already have there — and, where it holds the key to the registrar's account, changes the nameservers there itself. The step Waiting shows each stage and its state.
  4. With the registrar's key there is nothing to change by hand at the registrar. As soon as the nameservers propagate, the domain switches to Ready on its own — Qubix checks this every minute while the wizard waits. To finish right away, click Check now. You don't have to stay on the step: the domain is already in the list.
  5. Without the key — the registrar is another one, or it is Namecheap and you chose Do it by hand following instructions on the step DNS access — the name servers are yours to change. The plan marks the row Change the name servers to Cloudflare as done by hand, and the step Waiting shows the name servers of the new zone under the stage Cloudflare name servers, with a copy button and the mark in place or still the old one for each. Set them at the registrar; Qubix checks them itself, and the stage is done as soon as the zone becomes active. See Records you set by hand.

This is the recommended mode: pages load faster for visitors, your server's real address stays hidden, and Cloudflare smooths out traffic spikes and attacks. More in Faster loading via Cloudflare.

Cloudflare account for the zone​

The domain's zone can go not only into the main key's account but also into another Cloudflare account. The step Cloudflare account asks Which Cloudflare account should hold the zone? when Qubix creates the zone; on the step Plan and confirmation the chosen account is named at the right of the zone row. The list has these groups:

  • Company accounts — System account, that is, the main key from Connections, and the company keys added by the administrator;
  • Personal — your personal keys;
  • Other — Give the key of another account…, to work under an account Qubix does not have yet; see accounts and keys.

The step is skipped when the installation has exactly one Cloudflare account — Qubix takes it. Qubix looks for the domain's zone in the chosen account and, if it isn't there, creates it there. After connecting, the domain remembers this account: the background checks, the Check NS button and the connection-method switch reach the zone with its key. The same key is used by the administrator actions that go over all domains at once: updating the server address in Connections, changing the port for Cloudflare and the Speed up loading via Cloudflare switch. In the zone of a domain connected with a personal key, the address update and the port change take the key of the domain's owner: the address update changes only the domain's A record, and the port change only the port rule; the switch doesn't change such a zone. A connected domain can't change its account.

There's no account step when the zone's account is already known and you're allowed to change all domains with the same root domain: the domain is already connected through Cloudflare, or another domain with the same root domain is already connected through Cloudflare — for example, mysite.com when you connect promo.mysite.com. The check then shows the row Parent domain, and Qubix connects the domain through the account that holds that zone.

If the connection is refused, the message names the cause:

  • "The zone serving … is recorded under a different Cloudflare account (…)" — the parentheses name the account the zone is already recorded under: the main key, a company account with its name, or a personal key. Pick that account and try again.
  • "The zone of … is already served through Cloudflare under a different account (…)" — the domain itself, its root domain or another domain under the same root domain is already connected through Cloudflare in the account named in the parentheses, working or suspended. Pick that account and try again.
  • "A personal Cloudflare key can only be used for your own domain…" — you picked your personal key, but in Qubix the domain is recorded under someone else. Pick an account from the Company accounts group.
  • "Domains under … are connected through different Cloudflare accounts…" — domains with the same root domain are connected through different accounts, and Qubix can't tell which one holds the zone. The "domain — account" list in the message is shown to those allowed to change all these domains.

If the zone of the domain or of its root domain was created with another person's personal key, only the owner of that key can connect the domain, check it with the Check NS button and switch its connection method. Everyone else gets the answer "The zone of … is in another person's personal Cloudflare account - only they can do this."

The assistant chooses the account by the same rules and gets the same refusals — see Connect with the AI assistant.

The zone already exists in your Cloudflare​

You may have created the Cloudflare zone yourself and already pointed the domain's nameservers at it. Connect the domain exactly as described above — nothing has to be undone:

  • Qubix picks up your zone and doesn't create a second one. The two nameservers it shows are that same zone's nameservers, already set at your registrar, so there's nothing to change there.
  • You don't need to add an A record. Qubix creates it itself when the domain goes live: an A record for the domain, pointing at your server's IP and proxied through Cloudflare (the orange cloud).
  • An A record you've already created is no obstacle, as long as it is the only one. Qubix brings it to the same form — repoints it at your server's IP and turns the orange cloud on. It leaves the zone's other records untouched. If the domain has several A records, Qubix changes none of them — even if one already points at your server: with the others in place, part of the visitors would not reach it, and Qubix does not touch addresses that aren't yours. The domain then won't go live, and the Check NS answer names the records' addresses and your server's IP. Remove the extra records on the domain's DNS tab or in Cloudflare and click Re-setup.
  • Nothing to wait for. The nameservers are already set, so on the step Waiting click Check now — the domain goes live immediately, without waiting for the next check.
Choose the account that holds the zone

Qubix looks for the zone only in the accounts whose keys it has. A zone in a Cloudflare account that Qubix has no key for is invisible to it: the check shows Cloudflare · account not in Qubix, and the step DNS access asks for the key of that account or offers to do it by hand. Give the key of the account where the zone actually is, or save it first — see Company accounts and personal accounts. To keep the zone in your own Cloudflare account without giving Qubix its key, use Option C — Through my Cloudflare instead.

Connect the domain the zone is named after

A Cloudflare zone covers the whole domain together with its subdomains. If you connect a subdomain (postback.mysite.com) while the zone sits on the root domain (mysite.com), and Qubix doesn't manage any other name inside that zone yet, the connection is refused as a domain that isn't yours. Connect the root domain first, then the subdomain.

Option B — Own DNS (directly)​

Choose this option if you want to keep DNS where it is now and not move it to Cloudflare.

  1. On the step Traffic to the server choose Directly. Under Where should the A record to the server IP go? choose where the A record goes: Where the DNS is now or, if the zone is in Cloudflare, In Cloudflare.
  2. Click Next to the step Plan and confirmation. The plan shows the A record — A record @ → …, the @ host pointing at your server's IP address — and Issue the certificate on the server. Click Confirm.
  3. Qubix sets the record where it holds the key to the DNS. If the domain's DNS is served in Cloudflare, the record has proxying turned off (the gray cloud, "DNS only"). Where it holds no key — the DNS provider is another one, or you chose Do it by hand following instructions on the step DNS access — the record is yours to add: the plan marks the row with done by hand, and the step Waiting shows the record under the stage DNS records — the name, the server's address with a copy button and the state — and Now in DNS: with what DNS answers now. See Records you set by hand.
  4. As soon as the record propagates, Qubix issues an SSL certificate for the domain and switches it on automatically. The step Waiting shows the stages; to finish right away, click Check now.
Zone in Cloudflare? Gray cloud only

If the domain's DNS lives in Cloudflare, the A record must have proxying turned off — the gray cloud, the "DNS only" mode.

With the orange cloud (proxying on) the domain resolves to Cloudflare's own addresses, not to your server's, and this option can't confirm the domain by its address:

  • a domain that is already proxied when you connect it is refused by the server with the message “mygames.click is proxied through Cloudflare, so this server cannot confirm it by its address. Connect it with “Through my Cloudflare” instead.”;
  • if the cloud is turned orange after you connected the domain, the background check never succeeds, and the domain stays at "NS pending" — however long you wait; the Check DNS button names the same reason as the message above.

With the orange cloud, connect the domain another way: Option A — Via Cloudflare moves the zone under Qubix's management, Option C — Through my Cloudflare keeps it in your account. Pick one: either direct serving with the gray cloud and its own certificate, or serving through Cloudflare. A domain that is stuck at "NS pending" because of the orange cloud can be connected again with Option C.

The main way to avoid fiddling with the clouds at all is to hand the whole thing to the assistant: tell it in the chat "connect mygames.click directly", and it checks where the domain resolves, switches the record between the orange and the gray cloud (with your approval), and brings the domain to a working state.

With this option the domain is served straight from your server, with its own SSL certificate — no Cloudflare involved. You keep full control of the domain's DNS at your registrar.

Option C — Through my Cloudflare​

Choose this option if the domain's zone is in your own Cloudflare account and you want to keep it there, with the orange cloud. Qubix doesn't ask for the account's key and doesn't change the zone.

In the wizard this option is not a choice of the step Traffic to the server: it comes from your answers. The domain's DNS is in a Cloudflare account Qubix has no key to (on the step Domain name the row DNS reads Cloudflare · account not in Qubix), on the step Traffic to the server you choose Through Cloudflare, and on the step DNS access you choose Do it by hand following instructions. After Confirm the step Waiting shows, under the stage DNS records, the steps to take in your Cloudflare account and checks the connection itself. If you give the key on the step DNS access instead, Qubix manages the zone: that is Option A with this account.

The second way is the AI assistant — for example, "Connect shop.mysite.com through my Cloudflare — keep the zone in my account." It lists what to set up in your Cloudflare account and checks the connection.

The steps, what each check result means and how Qubix watches such a domain later — in Connect a domain through your own Cloudflare.

Step 3. Wait for it to go live​

With Option A or B, the last steps are the same: Qubix carries out the plan and waits for DNS to propagate. The step Waiting says it takes from a few minutes to an hour; a waiting stage that is not done within two days stops as did not work — the records you set by hand are waited for in the same way. With Option C, the domain waits for a check through your Cloudflare — see below.

  • Until DNS propagates, the domain sits at NS pending.
  • The background check runs every 5 minutes and switches it to Ready automatically.
  • To check right now, use Check now in the wizard, or Check NS (the Cloudflare option) or Check DNS (the own-DNS option) in the domain card.
  • With Option C, the domain shows Awaiting check until a check through your Cloudflare passes. The step Waiting runs the check once a minute and when you click Check now, and writes the reason of the last check under the steps; Qubix also checks every 5 minutes (when there are many such domains, some of them wait for one of the following rounds). Or ask the assistant to check it.

The Check NS and Check DNS buttons are in the domain card: on the Overview tab, in the Web traffic group.

The domain is ready for use when Ready shows in the domain card, in the Nameservers row. The domain itself leaves the Awaiting nameservers group: when connected through Cloudflare it moves to Working, when connected directly — to Outside Cloudflare. A domain connected with Option C waits in the Awaiting check group and then moves to Working. Until then, traffic won't go through it yet.

If Cloudflare refused

When Qubix accesses the domain's zone — when connecting through Cloudflare and on the Check NS button — the refusal message names the cause:

  • Cloudflare rejected the key — the token may have been revoked, or it has an IP filter that doesn't include your server's address. Check the key of the account you are connecting the domain through: the main key and company keys are in Connections — if that section isn't open to you, an administrator checks them — and a personal key is in My settings → My accounts.
  • The key lacks permissions for the zone — the token needs Zone:Read and Zone:Edit on all zones of the account. To connect domains with a key, give its token the whole list at once: Zone:Read, Zone:Edit, Zone.DNS:Edit, Zone.Settings:Edit and Zone.Origin Rules:Edit, plus Zone.Cache Rules:Edit, Account.Account Rulesets:Edit and Account.Account Filter Lists:Edit for faster loading — all on all zones of the account; what each one is for is in Faster loading via Cloudflare, the «What you need» section. If Connections isn't open to you, a company key's permissions are granted by an administrator.
  • Qubix could not turn on Authenticated Origin Pulls in the zone or make sure it is on — and without this setting visitors see "400 No required SSL certificate was sent". So a domain being put into service gets Error instead of Ready, and switching a working domain to Cloudflare is refused, leaving the domain as it was. The message says what to do: grant the token the Zone.Settings:Edit permission in Cloudflare, or turn on SSL/TLS → Origin Server → Authenticated Origin Pulls → Global in the zone. Then try again — for a domain showing Error, with the Re-setup button.
  • Cloudflare rejected the request for another reason — the end of the message carries Cloudflare's own answer ("Cloudflare says: …"). Fix the cause it names and try again.
  • Cloudflare could not be reached — try again in a minute.

Reconnecting or switching method​

If a domain is already in your list, you can run the wizard for it again. The check on the step Domain name recognizes the domain: the tasks you choose are added to the roles it already has, its visibility stays as it was, and the plan names the current visibility instead of asking.

To change the serving method of a domain that is already live, use the connection-method switch (Via Cloudflare / Direct): it's in the domain card, on the Overview tab, as the Connection row. The switch is available for a domain whose Cloudflare zone Qubix manages, whichever Cloudflare account the zone is in.

When moving from Cloudflare to direct serving, Qubix turns proxying off (the domain's A record goes gray), issues the domain its own certificate, and only then switches the method. If the certificate couldn't be issued, proxying is put back, the domain works as before, and the message names the cause. In rare cases of a double failure, the message states plainly what is left to fix by hand in the Cloudflare dashboard: turn the orange cloud back on for the A records, delete the gray A record created for the move, or point the A record back at the address it names.

A domain connected with Option C has no switch. To move such a domain to Option A or B, delete it and connect it again: Qubix refuses the other ways with the message “This domain's zone is in your own Cloudflare account, so the domain cannot be moved to our Cloudflare from here. Delete it and connect it again.”

The serving method follows DNS​

The serving method stored for a domain — "via Cloudflare" or "directly" — is not taken on faith. Every fifteen minutes Qubix looks at where the domain actually resolves and brings the record in line with reality:

  • the domain resolves to your server's address → the method is "directly";
  • the domain resolves anywhere else (Cloudflare's addresses, someone else's proxy) → the method is "via Cloudflare".

Why this is needed: a domain's DNS can be changed outside the panel — by hand at the registrar, in someone else's Cloudflare account — and then the stored method would stop matching reality, and the domain would be served the wrong way. The reconciliation fixes this by itself, in both directions. Domains connected with Option C are left out of it: their method stays as connected.

A consequence worth knowing​

Switching a domain to "directly" while keeping the orange cloud on in Cloudflare won't work: the domain keeps resolving to Cloudflare's addresses, and the next reconciliation brings the method back to "via Cloudflare". The connection-method switch is not broken and hasn't "forgotten" anything — it was simply overruled by the actual DNS.

That's why changing the serving method always takes two actions.

AI mode​

Open the AI assistant — it is available in every window, the domains window included — and say it in plain words: "Move mygames.click to direct serving" or "Why did the domain go back to Cloudflare?". It checks where the domain actually resolves, switches the cloud in the Cloudflare zone (with your approval), waits for the certificate — that is, performs both actions in the right order for you.

Manual mode​

  1. DNS first. Want it direct — turn proxying off (the gray cloud) or point the A record at the server's address. Want it via Cloudflare — turn the orange cloud on.
  2. Then the connection-method switch — or just wait: the reconciliation sees the new picture and moves the method by itself.
A domain that didn't resolve is left alone

If the domain didn't answer on a reconciliation pass (a DNS failure, a timeout), the record stays as it was. The method changes only on an answer actually seen.

Connect with the AI assistant​

A domain can be connected in any of the three ways by simply asking the AI assistant. For domains and DNS the assistant is like a systems engineer on your team: it holds the full Cloudflare and Namecheap toolset and does the technical setup for you — creates zones, points records, issues certificates, sets nameservers — so you don't need a separate specialist to keep your domains working.

Open the assistant and ask in plain words, for example:

  • "Connect the domain mygames.click through Cloudflare."
  • "I want to serve promo.mysite.com directly from my server — set it up."
  • "Connect shop.mysite.com through my Cloudflare — keep the zone in my account."
  • "Connect offers.click through Cloudflare in the company account Promo."
  • "Where does mygames.click point right now?"

The assistant takes the same path as the wizard and reaches the same result, only in a conversation. First it looks the domain up — where it points right now, whether it has a Cloudflare zone and which account that zone is connected through — and checks which Cloudflare accounts are available to you: the main key, the company keys and your personal keys from My accounts. Then it connects the domain the chosen way:

  • through Cloudflare — creates or finds the zone in the account you named and tells you which nameservers to set at your registrar;
  • directly — tells you which A record to add and, once you have added it, checks the record and issues the certificate;
  • through your Cloudflare — lists what to set up in your Cloudflare account and checks the connection.

The assistant picks the zone's account by the same rules as the wizard: if the domain's account is already known, the domain is connected through it, and a different account is refused with the same messages — see Cloudflare account for the zone. As always, it reads data on its own but asks your approval before any change.

Using your own Cloudflare or Namecheap key​

If the domain lives in your own Cloudflare or Namecheap account (not the system account), the assistant can work with your key. When it needs one, the assistant shows a small secure field right in the chat where you paste the API key. The key goes straight to the server and is never shown to the AI model — the model only sees an opaque reference to it. To work in that account — with DNS records, the zone and caching in Cloudflare, with nameservers and host records in Namecheap — you don't have to save anything. Connecting a domain with such a key isn't possible, though: a connected domain keeps reaching its zone with its own key after the conversation, so to connect a domain under your own account, save the key in My settings → My accounts.

Qubix checks a Namecheap key from this field with the registrar right away. If the key isn't accepted, the field says that it wasn't saved and names the reason — for example, the key didn't work, or the server's address isn't on this account's whitelist.

You can also save the key so that you can pick it in the domain card: a personal key — in My settings → My accounts, a company key — by the administrator on the Connections screen. Saved keys are picked on the domain's DNS tab — see DNS records; Cloudflare keys — also when connecting a domain, see Cloudflare account for the zone.

When the form isn't enough — ask the assistant​

The wizard covers the typical cases. The assistant goes further and handles non-standard situations a form can't — because it works with the Cloudflare and Namecheap tools directly. For example:

  • Any DNS record, not just the domain's main A record — add a CNAME for a subdomain, a TXT record for verification, an MX or extra A/AAAA records. See DNS records.
  • Change where a domain points — repoint an A record to a new server IP, or switch a record between proxied (orange cloud) and DNS-only (gray cloud).
  • Create a zone in DNS-only mode — a Cloudflare zone that manages DNS without proxying the traffic.
  • Nameservers and host records at Namecheap — read or set them directly.
  • Live diagnostics — "where does this domain point?", "are the nameservers set correctly?", "which records are in this zone?".
  • Caching on Cloudflare's servers — turn Cloudflare's static-file cache on or off for one domain's zone.
  • Everything else in the Cloudflare API — for operations the list above doesn't cover, the assistant can call the Cloudflare API directly.

So if a task doesn't fit into the wizard — a specific record, a non-standard setup, a quick "why isn't this working?" — describe it to the assistant and let it do the work. Everything still stays within your access rights, and every change is shown to you before it runs.

What's next​