DirectorySecurity AdvisoriesPricing
/
Sign in
Directory
pdns-auth logo

pdns-auth

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for pdns-auth

PowerDNS Authoritative Server - High-performance DNS server with flexible backend support.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/pdns-auth:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

The Chainguard pdns-auth image is comparable to the PowerDNS Authoritative Server Docker image. Like all Chainguard images, this container image is minimal and does not include unnecessary components such as a shell or package manager in the production variant, while maintaining full compatibility with PowerDNS functionality.

Getting Started

PowerDNS Authoritative Server is a high-performance DNS server with support for multiple backends, DNSSEC, and a comprehensive API for management and monitoring.

Docker

Run PowerDNS Authoritative Server with a basic configuration using Docker:

docker run --rm \
  -p 5353:53 \
  -v $(pwd)/pdns.conf:/etc/pdns.conf:ro \
  -v $(pwd)/named.conf:/etc/pdns/named.conf:ro \
  -v $(pwd)/example.com.zone:/etc/pdns/zones/example.com.zone \
  cgr.dev/ORGANIZATION/pdns-auth:latest

This example assumes you have a pdns.conf file in your current directory. See the Kubernetes section below for an example of pdns.conf.

Note: The --sysctl net.ipv4.ip_unprivileged_port_start=0 parameter allows binding to privileged ports (ports < 1024, such as port 53) as a non-root user. This is safer than using --cap-add=NET_BIND_SERVICE and is a safe sysctl option. Alternatively, configure PowerDNS to use a non-privileged port (e.g., 5353) which requires no special permissions.

Kubernetes

Deploy PowerDNS Authoritative Server in Kubernetes with ConfigMaps for configuration and zone files:

apiVersion: v1
kind: ConfigMap
metadata:
  name: pdns-config
data:
  pdns.conf: |
    launch=bind
    bind-config=/etc/pdns/named.conf

    local-address=0.0.0.0
    local-port=53

    socket-dir=/tmp

    api=yes
    api-key=your-secure-api-key
    webserver=yes
    webserver-address=0.0.0.0
    webserver-port=8081

    log-dns-queries=yes
    loglevel=5
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: pdns-zones
data:
  named.conf: |
    zone "example.com" {
      type master;
      file "/etc/pdns/zones/example.com.zone";
    };
  example.com.zone: |
    $TTL 3600
    $ORIGIN example.com.
    @       IN      SOA     ns1.example.com. admin.example.com. (
                            2024010101      ; Serial
                            3600            ; Refresh
                            1800            ; Retry
                            604800          ; Expire
                            86400 )         ; Minimum TTL
    @       IN      NS      ns1.example.com.
    ns1     IN      A       192.168.1.10
    www     IN      A       192.168.1.20
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pdns-auth
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pdns-auth
  template:
    metadata:
      labels:
        app: pdns-auth
    spec:
      securityContext:
        sysctls:
        - name: "net.ipv4.ip_unprivileged_port_start"
          value: "0"
      containers:
      - name: pdns-auth
        image: cgr.dev/ORGANIZATION/pdns-auth:latest
        ports:
        - name: dns-udp
          containerPort: 53
          protocol: UDP
        - name: dns-tcp
          containerPort: 53
          protocol: TCP
        - name: api
          containerPort: 8081
          protocol: TCP
        volumeMounts:
        - name: config
          mountPath: /etc/pdns.conf
          subPath: pdns.conf
        - name: zones
          mountPath: /etc/pdns/named.conf
          subPath: named.conf
        - name: zones
          mountPath: /etc/pdns/zones/example.com.zone
          subPath: example.com.zone
        livenessProbe:
          httpGet:
            path: /api/v1/servers/localhost
            port: 8081
            httpHeaders:
            - name: X-API-Key
              value: your-secure-api-key
          initialDelaySeconds: 10
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /api/v1/servers/localhost
            port: 8081
            httpHeaders:
            - name: X-API-Key
              value: your-secure-api-key
          initialDelaySeconds: 5
          periodSeconds: 5
      volumes:
      - name: config
        configMap:
          name: pdns-config
      - name: zones
        configMap:
          name: pdns-zones

Apply the configuration:

kubectl apply -f pdns-deployment.yaml

Verify the deployment is running:

kubectl get pods -l app=pdns-auth

Test DNS queries:

kubectl exec -it <pod-name> -- pdnsutil list-zones

Other Backend Options

PowerDNS supports various backends including:

  • PostgreSQL: High-performance SQL backend
  • MySQL/MariaDB: Popular SQL backend option
  • SQLite: Lightweight embedded database
  • LDAP: Directory service integration
  • GeoIP: Geographic load balancing

Consult the PowerDNS documentation for backend-specific configuration.

Documentation and Resources

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Librariescontact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • BSD-1-Clause

  • BSD-2-Clause

  • BSD-3-Clause

  • BSD-4-Clause-UC

  • BSL-1.0

  • CC-PDDC

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

A FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.


Related images
pdns-auth-fips logoFIPS
pdns-auth-fips

Category
application

The trusted source for open source

Talk to an expert
© 2025 Chainguard. All Rights Reserved.
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsIntegrationsPricing