Skip to content

CAP_VIEWS support for the generic PostgreSQL backend (gpgsql) #17776

Description

@voyo

Summary

CAP_VIEWS (Split-Horizon Views) is currently implemented only for the LMDB backend.
This proposes extending it to the generic PostgreSQL backend (gpgsqlbackend)
(which can be easily extended to cover other SQL backends (gmysql, gsqlite3))

Use cases

Views enable Split-Horizon DNS: serving different answers for the same zone
depending on the client's source IP. Common use cases:

  • Multi-tenant SaaS DNS: each customer manages their own zones, isolated
    from others, even when zone names overlap (e.g. private internal domains).
  • Internal vs. external resolution: the same domain resolves to private
    addresses for internal clients and public addresses for external ones —
    without running separate authoritative servers.
  • RFC 1918 reverse zones: multiple tenants with overlapping private address
    space (several customers each with 10.0.0.0/8) get correct PTR records
    without non-standard zone naming that breaks RFC 2317 delegation.

The LMDB backend already supports this. The generic SQL backend — covering the
most widely deployed configurations — does not.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions