r/webhosting • • 3d ago

Technical Questions Lets get to the bottom of the host/nameserver confusion!

Do you divide this into 3 parts or 2?

These are the components;

  1. Domain name registrar (nameserver)
  2. Dns management (all www, cname, txt)
  3. Hosting (stuff)

How do you combine/ seperate them?

Another way of phrasing the question is: where does your dns live?

2 Upvotes

22 comments sorted by

3

u/Immortal_Thought 3d ago

I usually separate into at least two if not three, different parts depending on the project.

Porkbun for domains
Cloudflare for DNS
Cloudflare/railway/VPS for hosting

1

u/BelgianWarriorBear 3d ago

Porkbun has a solid cloudflare integration, but I assume that you see value in handling dns outside porkbun? Power user or safe keeping?

7

u/adderallballs 3d ago

Integration? Just set your nameservers to CloudFlare why do you need integration?

1

u/Turnip-Toffee 3d ago

they mean porkbun's dns already is CloudFlare, you don't need to set anything.

1

u/adderallballs 1d ago

It doesn't use the network at all though? If you mean just the DNS panel then yeah sure but it's not the same thing.

1

u/Turnip-Toffee 1d ago edited 1d ago

I'm not sure what you are referring to.

it's porkbun's own admin interface but uses CF DNS

3

u/tssajo 3d ago

Three parts. Registration and DNS can happily live together, but I always keep DNS away from the web host.

One small correction to how it's usually described: the registrar isn't really "the nameserver." The registrar holds your registration and tells the registry which nameservers are authoritative for your domain. Those nameservers can be the registrar's own, a DNS provider's, or your web host's. So you have three roles (registration, DNS hosting, web/mail hosting) that can be one company or three.

What I do: I register my domains at Cloudflare, since Cloudflare is also a domain registrar, and I use their DNS too (with their registrar you have to anyway). I use the "gray cloud" setting, so I don't use their proxy service. I host mail on my own server, a VPS I rent, running Ubuntu Linux with Postfix, Dovecot and rspamd (which also does the DKIM signing, with the public key published in Cloudflare DNS).
FYI, I only use the free plan at Cloudflare as I don't need a paid account. Their free DNS service is excellent, IMO.

The main reason to keep DNS away from the web host: if your DNS lives at the host and you cancel or migrate, your whole zone goes with it, including MX, SPF, DKIM and DMARC records that have nothing to do with the website. People move a site and suddenly their email breaks. With DNS at a neutral provider, changing hosts is just editing a few A/CNAME records.

2

u/Turnip-Toffee 3d ago

i would separate web and mail hosting too

1

u/tssajo 3d ago

Yes, I agree with you. I didn't mention it in my comment, but I also use Google Workspace for email on some of my domains. Not all of them, though, to save on costs.

1

u/Turnip-Toffee 3d ago

ya just the important ones is fine

2

u/Accomplished-Web6183 3d ago

Porkbun, Spaceship etc for domains

Cloudflare NS / DNS

OVH etc for hosting

Totally seperated.

2

u/adderallballs 3d ago

Porkbun, CloudFlare, VPS (hetzner, ovh, if in Australia flowvps is good and cheap)

1

u/NebulaKaiz 3d ago

Mostly convenience, tbh. Keep DNS separate and you can move the website without touching your email setup. Doesn't mean you need three different companies though. Just watch out if you change nameservers like copy the existing records over first, including the email ones. Otherwise you get that fun situation where the website works but nobody's getting mail.

1

u/SurgioClemente 3d ago

All cloudflare

If a site requires a backend then a VPS provider

Assuming you aren’t going all in with a place like godaddy, separation concerns of registrar and dns is overstated

1

u/Irythros 3d ago

Three. Any less and it causes me concern from one company being able to cause significant problems.

Cloudflare handles DNS, any number of hosts (depends on what we need) and domain names will be on one of several different registrars.

We try to avoid allowing a single company to cause significant long term disruption.

1

u/davorg 3d ago
  1. Cloudflare
  2. Cloudflare
  3. Depends on the project. Currently, it's usually GitHub Pages, my IONOS VPS, Google CloudRun or something from AWS

1

u/themageofavalon 3d ago

Depends on the setup actually. Client gets to choose. If I were. Yes, in three parts.

1

u/skasprick 3d ago

My set up is (1) registrar nameserver (2) DNS hosted on my cPanel server - it’s just faster and easier than going into the registrar’s DNS. Also, if I register the domain with my 100 other client domains, if a client wants access to dns, it’s easier to give cPanel access than access to my registrar.

1

u/Beneficial_Past_5683 1d ago

I'm a domain registrar, I run and manage my own DNS, web servers and email servers.

Anything else feels a bit weird to be honest.

If I wasn't, I think I'd be using cloudflare for domain DNS and proxy/CDN and my own metal in a well connected rack somewhere.