PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Google

How to host many domains on one IP?

Last updated: May 11, 2026

Quick Overview

Evaluates knowledge of DNS, HTTP/HTTPS request routing, TLS certificate management, and operational/security trade-offs when hosting multiple domains on a single public IP. Commonly asked to probe architectural reasoning and practical deployment trade-offs in the System Design domain at an architectural/operational level of abstraction.

  • medium
  • Google
  • System Design
  • Software Engineer

How to host many domains on one IP?

Company: Google

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

You have a single Linux server with **one public IPv4 address**. A coffee shop, butcher shop, and auto repair shop each want their own website and **their own domain/URL** (e.g., `coffee.example`, `butcher.example`, `auto.example`). How would you host all of these sites on that one server/IP? Cover: - DNS setup - How incoming HTTP/HTTPS requests get routed to the correct site - How you would handle TLS certificates - Key operational/security considerations (isolation, logging, deployments)

Quick Answer: Evaluates knowledge of DNS, HTTP/HTTPS request routing, TLS certificate management, and operational/security trade-offs when hosting multiple domains on a single public IP. Commonly asked to probe architectural reasoning and practical deployment trade-offs in the System Design domain at an architectural/operational level of abstraction.

Related Interview Questions

  • Design an Online Coding Judge Platform - Google (medium)
  • Design a pub-sub replay system - Google (hard)
  • Design street-view image ingestion and storage system - Google (hard)
  • Design a global real-time notification system - Google (medium)
  • Design a large-scale distributed rate limiter - Google (medium)
Google logo
Google
Feb 1, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
11
0

You have a single Linux server with one public IPv4 address. A coffee shop, butcher shop, and auto repair shop each want their own website and their own domain/URL (e.g., coffee.example, butcher.example, auto.example).

How would you host all of these sites on that one server/IP?

Cover:

  • DNS setup
  • How incoming HTTP/HTTPS requests get routed to the correct site
  • How you would handle TLS certificates
  • Key operational/security considerations (isolation, logging, deployments)

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Google•More Software Engineer•Google Software Engineer•Google System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.