Skip to content
Dorian FINKEL
Network services#13

Oracle Cloud VPS: secondary DNS & filtering on the go

A second AdGuard Home on an Oracle Cloud VPS: it takes over when home DNS is down, and filters every request from my phone when I’m on 4G.

Year2025
RoleArchitecture & operations
  • Redundant DNS
  • Filtering on 4G
  • Encrypted DNS

Problem

All DNS relied on a single AdGuard Home at home: if it went down, the whole network lost name resolution. And on 4G, the phone fell back to the carrier’s DNS, with no filtering at all.

Solution

An Oracle Cloud VPS hosts a secondary AdGuard Home with the same filter lists as the primary. The local network gets it as a second DNS server; on 4G, the phone sends all its queries to it over encrypted DNS (DNS-over-TLS / DNS-over-HTTPS). Only the encrypted-DNS ports are open on the VPS.

Architecture

Clients
AdGuard resolvers

Tap an element to see its role, or follow a path.

Outcome

Name resolution survives a home outage, and filtering follows the phone everywhere, even off the network.
22
AdGuard resolvers
4G4G
filtered, off the network

Key steps

  1. 01

    Oracle Cloud VPS created, access rules limited to encrypted DNS

  2. 02

    AdGuard Home installed with the same filter lists

  3. 03

    Let’s Encrypt certificate for encrypted DNS (DoT / DoH)

  4. 04

    Second DNS server handed out to the local network

  5. 05

    Phone private DNS pointed at the VPS for 4G

  6. 06

    Tests: primary AdGuard down, queries from 4G

In the notebook

Stack

Oracle CloudAdGuard HomeDNS-over-TLSDNS-over-HTTPSLet’s Encrypt