Skip to content
Ayuni Host — Global Hosting Services

Domains

How to connect your domain to web hosting using DNS

Connecting a domain to hosting is copying two lines of text into the right box. The only way to get hurt is to forget your email records — so we will cover those first.

Published 1 April 2026 7 min read

Engineer configuring network and DNS settings on a laptop beside a network switch

Before you change anything: save your current records

Open your current DNS settings and write down every record, especially the MX records that route your email. If you change nameservers without recreating those, email stops arriving while the website looks perfectly fine.

The two ways to connect a domain

Nameservers hand the whole domain to your host, which then manages every record for you. This is the simplest option and the one to choose unless you have a reason not to.

A records point only the website at your host's IP address while leaving other records where they are. Choose this when your email or another service must stay with a different provider.

Changing nameservers, step by step

Five minutes at your registrar.

  • Log in where the domain is registered and open its DNS or nameserver settings.
  • Choose custom nameservers.
  • Enter the two nameservers shown in your hosting welcome email.
  • Save, then recreate any MX or verification records at your host.
  • Check the site over the next few hours as the change spreads.

Let us handle the DNS

Transfer your domain to Ayuni Host and we configure your website and email records for you — free of charge.

A record vs CNAME, in plain terms

Use the right one and DNS stops feeling mysterious.

  • A record: points a name straight at an IP address. Use for your root domain.
  • CNAME: points one name at another name. Use for www or a service subdomain.
  • MX: routes email. Never leave these out.
  • TXT: verification and anti-spam records such as SPF and DKIM.

How long does propagation take?

Usually one to four hours, occasionally up to 24 or 48. Lower your record's TTL a day before a planned move so the change spreads faster, and keep the old hosting running for a week so nothing is lost.

If your domain is with a local registrar

The steps are identical wherever the domain is registered, including local registrars in Kenya and elsewhere — only the wording of the menu changes. If you cannot find the setting, send us a screenshot and we will point at the right field, or transfer the domain to us and we will configure it for you.

Frequently asked questions

Will my website go down while I change nameservers?
Not if the site is already working at the new host before you switch. Keep the old plan live for a week as a safety net.
Why is my email not working after connecting my domain?
The MX records were most likely not recreated at the new provider. Add them back and mail resumes.
Can Ayuni Host do this for me?
Yes. Buy the domain with us and it is automatic; transfer it in and our engineers configure every record for you.

Need a hand applying this?

Our engineers answer setup and migration questions in plain language, 24 hours a day.