Domain Names and DNS
Domain names are human-readable addresses for websites. They work as follows:
- User enters a domain name in their browser.
- Browser sends a request to DNS servers.
- DNS servers look up the nameservers for the domain.
- Request is forwarded to those nameservers (managed by the hosting company).
- Nameservers direct the request to the web server hosting the website.
Web Hosting
Web hosting provides storage space for website files. The process involves:
- Purchasing a hosting plan from a provider.
- Provider allocating server space for website files.
- Server sending necessary files to user’s browser upon request.
Connecting Domain and Hosting
To make a website accessible:
- Register a domain name with a registrar.
- Purchase a web hosting plan.
- Upload website files to the hosting server.
- Configure domain’s DNS settings to point to hosting provider’s nameservers.
Web Hosting vs. Deployment Services
While related, these are not the same:
- Web hosting: Provides storage and access for websites on internet-connected servers.
- Deployment: Process of moving code from local environment to public host/server.
Example Comparison: Hostinger
vs. Heroku
- Hostinger:
- Traditional web hosting company
- Offers shared hosting, WordPress hosting, cloud hosting
- Beginner-friendly
- Generally cheaper for basic web hosting
- Heroku:
- Container-based cloud Platform as a Service (PaaS)
- Supports multiple programming languages
- Focused on developers
- Provides tools for deploying, managing, and scaling applications
- Pricing based on application resources and services
Email Servers and Providers
Email servers and providers are crucial for email infrastructure:
- Mail Transfer Agent (MTA): Relays emails from sender to recipient using SMTP.
- Message Delivery Agent (MDA): Receives emails from MTAs and stores them for delivery.
- SMTP Servers: Handle sending of emails.
- Inbound Servers:
- IMAP: Stores messages, allows access from multiple devices.
- POP3: Downloads messages to a single device, often deleting them from the server.
- DNS Resolution: Uses MX records to locate correct recipient server.
- Security and Authentication: Implements encryption, spam filtering, and authentication protocols. Email providers (e.g., Gmail, Outlook, Mailgun, SendGrid) offer managed email infrastructure, handling backend processes so businesses can focus on email content and strategy.