Skip to content

initDomains does not work for >1 domain #8

Description

@johnlane

If you add multiple initDomains, all the SOAs are attached to the first.

https://github.com/puckpuck/helm-charts/blob/main/charts/powerdns/templates/config-db-init.yaml#L109

{{ range .Values.powerdns.initDomains }}
INSERT INTO domains (name, type, notified_serial) 
VALUES ('{{ . }}', 'MASTER', 24);
    
INSERT INTO records (domain_id, name, type, content, ttl, prio)
VALUES (1, '{{ . }}', 'SOA', 'k8s.powerdns.server hostmaster.{{ . }} 24 60 60 60 60', 60, 0);
{{- end }}

The problem is the 1 for domain_id on the second insert.

Workaround is to not use initDomains and perform zone setup separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions