Web Infrastructure

Website Infrastructure: The Parts You Need and Who Manages Them

A typical small-business site needs five things: a registered domain, authoritative DNS, hosting, a TLS certificate and a mail service, plus backups you’ve actually restored once. Start with the simplest managed setup that runs your application and keep the registrar and DNS accounts in your own name. Go self-managed only when a specific requirement forces it.

What counts as website infrastructure?

website infrastructure components

It’s everything that gives your site an address, serves its content and keeps it running. Every public site needs a reachable address and somewhere to serve files from. A custom domain adds registration and DNS. HTTPS adds a certificate on whatever endpoint answers the request. After that it depends on the workload: a CDN such as Cloudflare or Fastly, a web server like NGINX or Apache, a database like MySQL or PostgreSQL, object storage, monitoring. A builder like Wix or Squarespace bundles most of these into one subscription. I sort each piece into one of three buckets: required for this site, needed only for a specific feature, or already run by the provider.

How a browser reaches your website: DNS, edge, origin and application

browser request path

Several separate systems answer a single page view.

The registrar holds the domain registration, and that’s where nameserver delegation is set. Authoritative DNS servers publish the domain’s records. A recursive resolver, usually your ISP’s or a public one like 8.8.8.8 or 1.1.1.1, walks the hierarchy from the root zone (13 named root server identities, served from well over a thousand anycast instances) down to your nameservers and returns the address of either the origin server or an edge service in front of it.

Browser → DNS resolution → optional CDN or reverse proxy → origin hosting → optional application and database → HTTP response

Over HTTPS the browser also runs a TLS handshake with that endpoint and validates its certificate. Then the request reaches whatever serves it. A static host returns files. A dynamic application runs code, queries a database and builds the response.

Every layer caches. Resolvers hold DNS answers for the record’s TTL, a CDN keeps assets near visitors, and the browser reuses what it already downloaded.

website delivery layers

A small business site might have its domain at Porkbun, DNS at Cloudflare and pages served from a builder’s edge network. The visitor sees one website. You’re paying three companies.

Each layer fails on its own. A name can resolve perfectly while browsers reject the certificate: a self-hosted setup with Technitium DNS answering correctly and a Caddy reverse proxy receiving traffic can still throw certificate errors if the certificate doesn’t cover the hostname.

If you want the protocol-level walkthrough, MDN’s guide to how the web works covers it well.

Choose the minimum infrastructure for your kind of website

website hosting choices

Three things decide the stack: what the site has to run, who maintains it, and what a failure costs. A five-page brochure site is a different job from a store taking orders or an app running background workers.

  • Static or brochure site: a builder or static host (Netlify, Cloudflare Pages, GitHub Pages) is enough. Move on only if you need server-side code the platform can’t run.
  • WordPress or content site: managed WordPress or decent shared hosting with a supported PHP version, MySQL or MariaDB, automatic updates and daily backups.
  • Online store: a hosted commerce platform such as Shopify, or managed WooCommerce hosting. Checkout, payment integrations and recoverable order data are the requirements.
  • Custom application: a platform service, a VPS or cloud compute with your runtime, persistent storage and a way to run background jobs.

When managed hosting and a self-managed VPS both fit, decide on upkeep. A managed host patches the platform and watches availability. A VPS gives you root, and with it the OS updates, firewall, backups, monitoring and 3 a.m. fixes.

Labels overlap. “Shared,” “VPS,” “dedicated” and “cloud” describe different things (resource allocation, isolation, who operates it, deployment model), so one product can carry two of them.

managed hosting comparison

Four filters settle most cases:

  • Application: does the site need a specific CMS, custom server code, a database or background processing?
  • Skills: can someone on your side maintain the OS, runtime and security config if the service leaves them to you?
  • Load: how will traffic change, and which measured limit (CPU seconds, PHP workers, inodes, bandwidth) would make a basic plan fail?
  • Consequences: which failures hit visitors, orders or stored data, and can this hosting model recover from them?

Identify who owns and can change each part of the stack

website account ownership

Plenty of sites run for years before anyone notices nobody knows who controls the registrar account. It surfaces at the worst time: a renewal, the end of an agency contract, a DNS change.

Technical access, account admin, billing and the legal registrant can all be different parties. A developer can edit DNS without being the registrant. An agency can run the site while the client pays Microsoft 365 for email directly.

ComponentControlled inHard limits worth knowing
Domain registrationRegistrar accountICANN lets registrars refuse a transfer within 60 days of registration or a prior transfer, and blocks it for 60 days after a registrant name or email change. The registrar must hand over the auth code within 5 calendar days.
Authoritative DNSDNS provider’s zoneChanges reach visitors only as cached copies expire at each record’s TTL.
TLS certificateHost, CDN or ACME clientPublic certificates issued since March 15, 2026 are valid for at most 200 days; the CA/Browser Forum schedule cuts that to 47 days by 2029. Let’s Encrypt certificates last 90 days.
Business emailMail provider plus DNSSPF allows at most 10 DNS lookups (RFC 7208). Gmail requires SPF, DKIM and DMARC from senders of 5,000+ messages a day.
HostingHost or platform accountFiles, runtime, database and backups live here; check export options before you need them.
BillingEach service’s accountAn expired card on any one account can take that layer offline.

Use it as an inventory. For each service, write down the account, the person who can change it, who pays the renewal, and how access or data gets transferred if that person leaves.

client hosting responsibilities

Agencies and freelancers ask about this constantly on r/webhosting: register client domains under the agency, or have the client buy them? My answer is the client’s own registrar account with delegated access for you. The client keeps legal control and you still manage the records. Other setups work, as long as everyone knows who can renew, transfer, edit and recover each service.

At a handover, transfer access to the site’s files, config and service accounts, and treat domain registration, hosting admin and data export as three separate items. Write it down, so a working site doesn’t depend on credentials held by someone who no longer answers for it.

What can break when you change hosting or nameservers?

dns migration dependencies

Moving hosts, changing nameservers and transferring the registration are three different operations with different blast radii.

  • Updating A, AAAA or CNAME records moves web traffic only. Registration and email stay put.
  • Changing nameservers hands the entire zone to a new provider. Any record missing there, including MX, SPF, DKIM and verification TXT records, disappears for everyone.
  • Moving the hosting account touches files, runtime and the database. Check PHP and database versions match before you cut over.
  • Editing MX or email-authentication records affects inbound mail and deliverability; use the exact values your mail provider publishes.
  • Cancelling the old host deletes whatever is still stored there. Take and test a backup first.

The most common confusion is in this r/webhosting question from a new site owner:

Hi everyone, I have absolutely no technical skills in this area and just looking for some advice. I registered a domain with Porkbun last month and use that domain for my business email. Now I’m trying to build a website and decided to use WordPress with an alternative hosting website which apprently cannot be typed out. Of course when I type the domain it says it’s already taken. Do I have to transfer my domain from Porkbun to the new host to be able to use it on the website I build? Will that affect my email?

r/webhosting

No transfer is needed. The domain stays at its registrar and you point it at the new host with DNS records, and the email keeps working as long as its MX and TXT records stay in the zone. Setups with a separate DNS provider or a reseller account need more care, and mapping which login controls each layer is the first step.

email dns records

Switch nameservers before the new zone is complete and the site or mail can go dark. The old zone holds web addresses, MX records, SPF and DKIM TXT records and assorted verification entries. When the email side is the part you’re nervous about, this cutover plan for moving hosting without losing mail covers the MX, nameserver and SPF checks step by step.

A safe DNS migration in five steps:

  1. Export the zone: pull every record from the current DNS host, including mail and verification entries. Many providers offer a BIND zone file export.
  2. Rebuild and compare: import at the new provider, diff the records, and handle DNSSEC (remove the old DS record at the registrar or migrate keys) before switching.
  3. Lower TTLs early: drop TTLs to a few minutes a day ahead, so a mistake can be corrected quickly.
  4. Change delegation: update nameservers at the registrar only when the new zone matches.
  5. Verify: query the new nameservers directly with dig @newns example.com MX, compare public resolvers, then test the site and send test mail both ways.

Cloudflare’s full-setup documentation walks through preparing the zone and changing delegation. Resolvers pick up the change on their own schedule. Waiting won’t recreate a record you forgot to copy.

Keep the site secure, observable and recoverable

website reliability controls

Security, monitoring and recovery are three separate jobs, and a working hosting account covers none of them fully.

TLS encrypts the connection and proves the endpoint’s identity through the certificate. With certificate lifetimes shrinking toward 47 days, manual renewal stops being practical; automate it with ACME (Certbot, Caddy’s built-in client or your host’s tool) and alert on expiry. Application security still depends on access control, patching and how you handle customer data.

Monitoring tells you whether something responds and whether specific functions work. An HTTP 200 check can pass while checkout is broken, so add at least one check that exercises what visitors actually do, such as a login or a test order. Logs and metrics help you find the fault. Alerts need a named person who can act on them.

website recovery planning

Backups are worth what they cover, where they’re stored and whether they restore. The common 3-2-1 rule gives a baseline: three copies, on two kinds of storage, one off-site. A backup held only inside the hosting account vanishes with the account.

  • Recovery Point Objective (RPO): how much data you can afford to lose. Daily backups mean up to 24 hours of orders or posts.
  • Recovery Time Objective (RTO): how long you can be down before restoring.

An RPO in a plan description isn’t proof. Only a restore test shows that data, config and application come back. Google Cloud’s guidance on testing recovery from data loss gives a sound basis for designing one.

For a managed CMS, restore the latest backup into a staging copy, load the site, and check that recent content and key functions are there. Decide in advance who’s allowed to trigger a restore.

Core Web Vitals measure visitor experience: Largest Contentful Paint (good under 2.5 s), Interaction to Next Paint (under 200 ms) and Cumulative Layout Shift (under 0.1). They don’t replace uptime checks, since a site can be up and still painful to use. Alerting, incident handling and restore drills are in our reliability and recovery playbook.

Budget for the stack you operate, not just the server price

hosting cost categories

The advertised hosting price covers one defined service. Running the site costs more: add-ons, usage and the hours to maintain it. Shared hosting promotions usually apply to the first prepaid term only, so price the renewal rate too.

Compare over one fixed period, a year works, in five buckets:

  • Registration and subscriptions: domain renewal, hosting or platform fees, separately billed email (Google Workspace, Microsoft 365) or certificates.
  • Compute and storage: server or app resources, databases, files, and overage beyond the plan.
  • Network and delivery: bandwidth, outbound transfer, requests, paid CDN or WAF tiers.
  • Operations and recovery: backups and retention, monitoring, support plans, maintenance time, restore tests.
  • Exit costs: renewal terms, export limits, cancellation rules, migration work.

A builder folds hosting, platform maintenance and some security into one subscription, which is the main reason it’s simpler to budget.

cloud network billing

Cloud bills hide line items. An AWS NAT Gateway in US East (Ohio) costs $0.045 per hour plus $0.045 per GB processed, so one gateway is about $33 a month before it moves any data. Every public IPv4 address adds $0.005 an hour, in use or idle. Details are in the AWS NAT Gateway pricing documentation.

For the one-year worksheet, list each service, its fixed and usage-based charges, who operates it, and the renewal and exit terms in its contract.

When something breaks, check the failing layer first

website failure diagnosis

Match the first check to the symptom, and start with commands that change nothing.

SymptomRead-only first checkLayerWho to call
Domain doesn’t resolvedig NS example.com +trace, then whois example.com for expiry and statusDelegation, zone, registrationDNS admin or registrant
Certificate warningopenssl s_client -connect example.com:443 -servername example.comTLS, edge or originHosting or security operator
Page loads, feature failsBrowser dev tools network tab, application error logRuntime, database, app configApplication operator
Inbound email stopsdig MX example.com against the authoritative serverDNS or mail serviceDNS or email admin
Uptime check green, checkout brokenRun the checkout flow yourself and read the payment logApplication or payment processingApp or monitoring owner
Unexpected cloud billCost Explorer grouped by service and usage typeCompute, network, storageCloud or billing owner

This r/sysadmin report shows how a split between registrar and DNS host can fail without anyone touching the DNS provider:

I work for an MSP. Some of our clients will come to us with pre-existing domains. Sometimes we take those over, other times we just manage the DNS. This particular client and domain is one of those types. We manage the DNS in our Cloudflare, but the domain itself lives in the clients GoDaddy account with name servers pointed to Cloudflare. Well a couple days ago the marketing director of this client was looking in the GoDaddy portal for something, and upon logging in saw a message stating something like “GoDaddy isn’t fully managing your example.com domain, click here to fix it.” Upon clicking there, it reverted the name servers back to GoDaddy. Notable GoDaddy DNS isn’t configured for Microsoft exchange email. So cut to about 24 hours later and they can’t get email anymore.

r/sysadmin
dns incident investigation

Registration sat at GoDaddy, DNS at Cloudflare, mail at Microsoft. One click in the registrar portal changed delegation, and mail stopped once resolver caches expired. Here, dig NS would have shown GoDaddy’s nameservers within seconds, before anyone opened Exchange or the web server. Registrar lock and limiting who can log into the registrar account prevent a repeat.

Your next step: follow the right infrastructure guide

infrastructure guide navigation

Pick the guide that matches the decision still in front of you.

  • Web Hosting & Domains: choosing a host, shared versus VPS, domain and email hosting.
  • Cloud Platforms & Architecture: custom workloads that need a cloud service model, more control or a larger deployment.
  • Cloud Costs & FinOps: estimating usage-based bills, allocating cost, chasing network charges.
  • Data Center Infrastructure: facility, power, cooling and colocation.
  • Web Operations & Reliability: DNS problems, migrations, monitoring, security operations and restores.

If the decision involves IAM boundaries, recovery targets or network routes in the cloud, size the workload first using the cloud workload requirements checklist.

Leave a Reply

Your email address will not be published. Required fields are marked *