07Domains, DNS & SSL
Connect your domain to your Nexthosting website
Connect your domain to Nexthosting web hosting or WordPress hosting – by switching nameservers or with A, AAAA and CNAME records at your old provider.
In short
First enter the domain in the web panel for your website. Then, at your current provider, either set the nameservers to ns1.nexthosting.net and ns2.nexthosting.net, or set A and AAAA records (and www as a CNAME) there. The address for the A record is shown by the web panel for your website. Afterwards Nexthosting issues an SSL certificate automatically.
The two routes
Section titled “The two routes”| Route A: switch nameservers | Route B: records at the old provider | |
|---|---|---|
| Who manages the DNS records? | Nexthosting (DNS editor in the web panel, nameservers ns1.nexthosting.net and ns2.nexthosting.net) |
Your current provider |
| Effort | Change nameservers once, then maintain all records | Change two or three records |
| Email at the old provider? | Has to be rebuilt in the DNS editor | Stays unchanged |
| Waiting time | Up to 48 hours | Usually minutes to a few hours |
| Good for | Everything from one source | Domain with other services (email, shop) |
Preparation: add the domain in the web panel
Section titled “Preparation: add the domain in the web panel”Whichever route you take: the website must know the domain. Otherwise the server does not know which site to deliver for this address.
- Log in at webpanel.nexthosting.net (Web panel access).
- Open your website and enter the domain as the main domain, or create the website with the domain (Create a website).
- For route B, note the address (IP address) the web panel shows for the website or in the DNS area (for A or AAAA). Use exactly this value. For route A you only need the Nexthosting nameservers
ns1.nexthosting.netandns2.nexthosting.net.
Route A: switch nameservers
Section titled “Route A: switch nameservers”You tell your registrar that the Nexthosting nameservers are responsible.
- Add the domain in the web panel (see above).
- In the DNS editor of the web panel, prepare all records that already exist at the old provider (email, verifications). Help: Manage DNS records.
- At your current provider (registrar), in the “Nameserver” area, set the nameservers to
ns1.nexthosting.netandns2.nexthosting.net. Remove the old nameservers. - Wait. Nameserver changes take up to 48 hours, usually less.
- Use
nslookup -type=NS meinprojekt.deto check whetherns1.nexthosting.netandns2.nexthosting.netappear.
Route B: set A, AAAA and CNAME records
Section titled “Route B: set A, AAAA and CNAME records”The domain stays at the old provider, only the records point to Nexthosting.
- At the old provider, open the DNS management of the domain.
- Set or change the A record for
@(the main domain) to the address the web panel shows for the website. If the web panel also gives an IPv6 address, additionally set an AAAA record. - Create a CNAME for
wwwpointing to the main domain (www→meinprojekt.de). - Remove old A, AAAA and CNAME records that point to the previous server. Otherwise some visitors end up in the wrong place.
- Leave email records (MX, TXT) unchanged if your email stays with the current provider.
@ 3600 IN A address from the web panel@ 3600 IN AAAA IPv6 address from the web panel (if shown)www 3600 IN CNAME meinprojekt.de.Nexthosting deliberately gives no fixed addresses here, because they differ by product. Use the values the web panel shows for your website.
www or without www?
Section titled “www or without www?”Both spellings should lead to the same page. Pick one as the main address and redirect the other. How to do this with .htaccess is explained in .htaccess basics. For WordPress, set the address in the settings (“WordPress Address” and “Site Address”) to the variant you want.
How long does it take?
Section titled “How long does it take?”- Minute 0DNS change saved
- Minutes to hoursNew address becomes visible everywhereDepends on the TTL of the old record
- AfterwardsCertificate is issuedOnly once the domain points to the server
- DoneWebsite reachable via https
The SSL certificate is only created once the domain really points to the server. The details are in SSL certificates and HTTPS.
Problems when connecting
Section titled “Problems when connecting”| Symptom | Common cause | What to do |
|---|---|---|
| Old page still appears | DNS cache, old A records | Wait, delete old records, Solving DNS problems |
| Default page of the server | Domain not assigned to the website in the web panel | Enter the domain for the website |
| Browser warns about the certificate | Certificate not issued yet | Wait, see SSL |
www does not work |
CNAME for www is missing |
Set the record |
| Emails do not arrive | Nameserver change without MX records | Create MX/TXT in the DNS editor |
Frequently asked questions
Section titled “Frequently asked questions”Do I have to register the domain at Nexthosting?
Section titled “Do I have to register the domain at Nexthosting?”No. It can be with any provider. See Register or transfer a domain.
Which address should I enter?
Section titled “Which address should I enter?”For the A record, the address the web panel shows for your website; we deliberately give no fixed numbers here. For a nameserver change, enter ns1.nexthosting.net and ns2.nexthosting.net.
What happens to my old website?
Section titled “What happens to my old website?”It stays at the old provider until you cancel it. Check beforehand that everything has been moved completely (Move a website).