What is a Server?
Web, mail, database and DNS servers and how they serve clients
A server is a computer or a program that provides services and resources to other computers, the clients. Servers deliver websites, emails, files and applications and usually run around the clock.
Types of servers
- Web server: delivers websites. Your browser sends a request, and the web server returns the page, usually encrypted via HTTPS. See SSL vs. HTTPS.
- Mail server: sends, receives and stores emails.
- Database server: stores data and answers queries, for example for an online shop.
- File server: provides files over the network.
- Application server: runs applications that users access over the network.
- DNS server: answers DNS queries. Authoritative nameservers hold the zones of domains; resolvers look up answers for clients. See What are Nameservers?
How a server works
Special software on the server waits for requests from clients. When a request arrives, the server processes it, fetches the required data and sends an answer back. This exchange is the basis of almost every internet service.
Servers and domains
DNS connects a domain with servers: the DNS records of a domain say which server hosts the website (A and AAAA records) and which mail server receives email (MX records).
A domain does not need a web server. You can point it to a hosting provider, forward it to another address, park it or use it for email only. See Domain forwarding and redirects: What are they and who should use them?, What is domain parking and who can use it? and How does email forwarding work and who benefits from it?