Category: Domains & DNS

Domains and DNS for site owners: pointing a domain at your web host, nameservers vs A and www records, TTL, DNSSEC, and how to check the change worked.

  • How to Point a Domain to Your Web Host: DNS Explained

    How to Point a Domain to Your Web Host: DNS Explained

    To point a domain to a web host you either change its nameservers at the registrar to the ones the host gives you, or keep your DNS where it is and change the A record for the root and the www record to the host’s IP address. As of November 2026, every step below comes from Hostinger, Kinsta, Namecheap, Cloudflare and WordPress.org documentation and from the DNS standards, so none of it depends on a plan.

    Part of the guide library. For a full host move, start with migrating away from Bluehost.

    Key facts

    ItemWhat it doesWhere you change it
    RegistrarHolds the registration and sets the nameserversRegistrar account
    NameserversStore the DNS records and answer lookupsRegistrar
    A / AAAAName to IPv4 / IPv6 addressDNS host
    CNAMEName to another name (www to root)DNS host
    MXDelivers email to a mail serverDNS host
    TXTText: SPF, DKIM, DMARC, verificationDNS host
    TTLHow long resolvers cache a recordDNS host, per record

    Registrar, DNS host, web host

    Three jobs, often three companies.

    The registrar holds the registration. Kinsta’s DNS docs: DNS is managed wherever the nameservers point, but the nameservers themselves are always controlled at the registrar. If you do not know yours, Cloudflare’s nameserver docs suggest a Whois search such as ICANN Lookup.

    The DNS host runs the nameservers. RFC 1034 describes name servers as programs that hold information about the domain tree and are the authority for their part of it. It can be the registrar, the web host or a third party such as Cloudflare.

    The web host runs the server. Kinsta describes the chain: the visitor’s computer finds the name servers, asks one for the A record, which contains the IP address of the server where the site is hosted, and connects there. Pointing a domain means making that chain end at the new host.

    Two ways to point a domain

    Hostinger’s support article lists Option 1, change the domain nameservers, and Option 2, change the A record. Kinsta’s add-a-domain guide uses the record route by default, at whatever DNS provider you already use.

    Change the nameservers when you want the host to run DNS too. Hostinger calls it the best option when Hostinger will run both DNS and email. The whole zone moves, so every record must exist at the new host before the switch.

    Change the records when DNS should stay put. Hostinger’s reasons: you use Cloudflare, or your provider does not support changing nameservers. Only the names you edit change, so Hostinger notes that existing email records remain unchanged.

    The rule: if the current zone holds working email or verification records, change the records. Change nameservers for an empty zone, or after recreating every record at the new provider.

    The records that matter

    A and AAAA. Cloudflare’s record reference defines them as mapping a domain name to IPv4 or IPv6 addresses; RFC 3596 defines AAAA as storing a single 128-bit IPv6 address. The bare domain is written as @; Namecheap’s knowledgebase says to enter @ for the root and only www for the www record.

    CNAME for www. Cloudflare says a CNAME maps a domain name to another (canonical) domain name; Kinsta notes it is commonly used to map www to the non-www domain.

    MX and TXT for email. Cloudflare: an MX record is required to deliver email to a mail server, and a TXT record lets you enter text into DNS. Namecheap says TXT records usually carry SPF, DKIM and DMARC.

    Why a nameserver change can silently drop mail. The new nameservers answer from their own copy of the zone, which starts with whatever the provider put there. Namecheap’s nameserver article: once nameservers change to its hosting ones, all custom DNS records are overwritten. Hostinger: the nameserver route configures email records for Hostinger Email; users of another mail provider must update the MX records after propagation. The site keeps loading because the host added its own A record. Mail stops because nobody added the MX.

    Before you change anything

    1. Write down every record: every entry with its type, name, value and TTL. Kinsta’s DNS docs warn that its automatic scan detects only commonly used types and names, so review it and add anything missing before changing nameservers.

    2. Take the new host’s values from its dashboard. Hostinger shows nameservers and IP in its Connect your domain flow and says the values may vary by domain, so use the exact ones shown.

    3. Lower the TTL first. Cloudflare’s TTL reference: Time to Live controls how long each record is cached and so how long updates take to reach end users. RFC 1034 gives the technique: if a change can be anticipated, reduce the TTL beforehand and raise it back afterwards. Defaults differ: Namecheap’s is 1800 seconds (30 minutes), Kinsta recommends its default of 1 hour, Cloudflare fixes proxied records at 300 seconds. Lower it at least one old-TTL period before the switch.

    4. Check DNSSEC. Hostinger lists “DNSSEC is disabled” among its pre-flight checks, and Cloudflare’s DNSSEC docs say changing nameservers while it is active can make the domain unreachable.

    Step by step

    Method 1: change the nameservers at the registrar

    • Build the zone at the new DNS host first. Kinsta’s order: add the domain in DNS management, copy the records in, then go to the registrar.
    • Turn off DNSSEC at the registrar if it is on. Cloudflare says to re-enable it at the new provider once the domain is active.
    • Enter the nameservers. Namecheap: sign in, open Domain List, click Manage, choose Custom DNS in the Nameservers section, enter them and save with the green checkmark. Kinsta: remove the existing nameservers if required, add the four shown in MyKinsta and make sure they are the only ones listed.
    • Confirm in the host’s dashboard. Hostinger runs a Live DNS Checkup; Kinsta shows a checkmark next to the domain.

    Method 2: keep your DNS and change the records

    • Get the target. Hostinger’s Connect via DNS record screen shows the IP. Kinsta shows A records, or CNAMEs for domains on Cloudflare.
    • Remove the conflicts. Hostinger: delete any existing A and/or AAAA records for @ and any A or CNAME record for www. Kinsta: remove conflicting records for the same hostname, even of a different type.
    • Add the new records. Hostinger: A records for @ and www pointing to the IP shown. Kinsta: add them exactly as shown, then confirm in MyKinsta.
    • Leave MX, TXT and everything else alone.

    Propagation and checks

    Each vendor states its own window. Hostinger: up to 24 hours, in most cases a few hours. Namecheap: up to 24 hours, more in rare cases. Kinsta: 24 to 48 hours for a nameserver change. For the record route, the wait is the TTL you set.

    Check with tools, not browser reloads. Cloudflare’s setup guide lists dig on macOS and Linux (dig ns example.com, dig example.com +trace) and nslookup on Windows (nslookup -type=ns example.com); swap ns for a, aaaa or mx to inspect other records. Online, Cloudflare and Kinsta both name whatsmydns.net; Cloudflare notes such tools use cached results and may lag.

    After the switch

    SSL certificate. Kinsta’s SSL docs: verified domains get free certificates through its Cloudflare integration, the certificate covers www and non-www, and renewal depends on the _acme-challenge CNAME staying in DNS.

    Force HTTPS. In MyKinsta: Tools, then Enable under Force HTTPS. In WordPress, WordPress.org’s migration documentation says the Settings, General fields “WordPress Address (URL)” and “Site Address (URL)” should include https:// and have no trailing slash. If the domain did not change, neither field needs to.

    www and non-www. Kinsta notes that making one version primary does not redirect the other; you add a 301 redirect under Sites, Redirects.

    Email. Send a message both ways, then run dig mx example.com and compare with the MX you wrote down.

    Common mistakes

    • The nameserver change wiped custom records. Namecheap adds that switching between custom and default nameservers does not carry host records over automatically. The fix is the list you made first.
    • Copying records from behind a CDN proxy. Cloudflare’s proxy status docs: a query to a proxied record is answered with Cloudflare anycast IP addresses instead of the origin IP, and Kinsta notes proxied records may not display the correct values. Copy from the DNS panel, not from dig.
    • DNSSEC left on at the old provider. Cloudflare: the provider digitally signs all your records, and that single signed set prevents a new provider’s records from resolving properly. ICANN adds that a resolver which cannot validate the signature assumes an attack, discards the data and returns an error.
    • A CNAME at the root. RFC 1912: a CNAME record is not allowed to coexist with any other data, so it collides with the MX and NS records at the root. Use an A record, Namecheap’s ALIAS record, or Cloudflare’s CNAME flattening, which returns the final IP instead of the CNAME.
    • Forgetting the AAAA record. An AAAA record answers IPv6 lookups on its own, so an old one left in place can still send some visitors to the old server after the A record changes, which is why Hostinger starts by deleting any existing A and/or AAAA records for @.

    For the rest of each host’s setup, see the Hostinger review and the Kinsta review.

    Frequently asked questions

    How long does it take to point a domain to a web host?

    Hostinger says up to 24 hours and usually a few; Kinsta says 24 to 48 hours for a nameserver change. A record change is bounded by its TTL, which is why lowering it first matters.

    Should you change the nameservers or just the A record?

    Change the A and www records when the current zone holds email or verification records, or when you use Cloudflare. Change nameservers when you want the host to run DNS and have recreated every record there first.

    Will changing nameservers break email?

    It can, if MX, SPF, DKIM and DMARC are not recreated at the new DNS host before the switch. Namecheap, Hostinger and Kinsta all document that outcome.

    Do you need to change anything in WordPress after pointing the domain?

    Not if the domain stays the same: WordPress.org says moving without changing the home and site URLs can usually be done by moving the files. If the domain changes, update WordPress Address (URL) and Site Address (URL) under Settings, General.

    Last checked: November 2026. Prices and plans change; check the vendor’s page before you buy.