Table of Contents

TorresVault Local DNS & Domain Architecture

This page documents how local DNS, DHCP, hostnames, and subdomains work throughout the TorresVault network.

It covers:


Domain Overview

The home lab uses the domain:

torresvault.com

DHCP automatically assigns:

This means:


Local DNS Records

Pi-hole acts as the authoritative resolver for the internal network.

Domain IP Address Purpose
in.torresvault.com 192.168.1.27 Internal homepage/dashboard
pve1.torresvault.com 192.168.1.150 Proxmox Node 1
pve2.torresvault.com 192.168.1.151 Proxmox Node 2
torresvault.com 192.168.1.99 Nginx Proxy Manager (root)

These are manually entered into:

Pi-hole → Local DNSDNS Records


Wildcard DNS

A wildcard rule ensures:

*.torresvault.com → 192.168.1.99

This allows any subdomain to hit NPM unless manually overridden.

Examples:

All are routed through Nginx Proxy Manager (NPM).


Nginx Proxy Manager (NPM) Integration

NPM is located at:

NPM handles:

Each service has:


Why the wildcard rule works

Even though Pi-hole doesn't know the IP of:

`jellyfin.torresvault.com` or `kuma.torresvault.com`

…it does know:

*.torresvault.com → 192.168.1.99

Then NPM looks at the hostname and routes to the correct service.


Unifi DHCP Integration

Unifi hands out:

DHCP → Domain Name = torresvault.com DNS Server = 192.168.1.5 (VIP)

Clients automatically adopt:


Short Hostname Resolution

Because DHCP gave the domain suffix:

Typing “pve1” converts automatically into: pve1.torresvault.com

This works for:


Example Subdomains Used

Hostname Public/Internal Resolves To
jellyfin.torresvault.com Internal 192.168.1.86:8096 (via NPM)
next.torresvault.com Internal 192.168.1.75:8080 (via NPM)
kuma.torresvault.com Internal 192.168.1.141:3001
photos.torresvault.com Internal 192.168.1.6:2283
automation.torresvault.com Internal 192.168.1.92:5678
status.torresvault.com Internal 192.168.1.141:3001
torresfamilylights.com Internal 192.168.1.27:80

Internal Homepage

The internal landing page:

http://in.torresvault.com → 192.168.1.27

Contains:

This page does not go through NPM (direct IP mapping).


Traffic Flow Diagram

Client → DNS Query → 192.168.1.5 (VIP Pi-hole) ↓ Pi-hole resolving: Local DNS? → direct IP *.torresvault.com? → 192.168.1.99 Else → upstream DNS ↓ NPM at 192.168.1.99 Looks at hostname Routes traffic to correct backend container/VM


Benefits