Git Product home page Git Product logo

Comments (2)

mbag avatar mbag commented on June 16, 2024

hi @m33x-7 thanks for reporting issue. I'll try to reproduce, but I need one clarification first. Is it possible to create malformed SOA using PowerDNS API, or do I have to use PowerAdmin (and is this it: https://github.com/poweradmin/poweradmin) or can I use pdnsutil or manually enter record into database?

Just a side note. In API curl section you left API key value in -H "X-API-Key: header, but removed it later on. If this is just some random key then OK, but if it is a production key, then you might want to consider changing it just in case.

from terraform-provider-powerdns.

m33x-7 avatar m33x-7 commented on June 16, 2024

Hi @mbag thanks for catching that, luckily not a production box but still not something I wanted to escape.

pdnsutil and the api enforce creation of the SOA with all the attributes that are supposed to be there. It looks like we've run into this because PowerAdmin is doing SQL writes directly, and SQL is how we've traditionally managed PowerDNS in production. However in production we're not using PowerAdmin, but a stored proc which is setting everything up correctly.

So at this point it's a pretty contrived failure, if you still want to try replicating it the following should do it:

INSERT INTO domains (name,type) VALUES ('example.com','MASTER');
SELECT id INTO @domain_id FROM domains WHERE name = 'example.com';
INSERT INTO records (domain_id,name,type,content,ttl) VALUES (@domain_id,'example.com','SOA',' 2020072902 10800 3600 604800 86400',86400);

from terraform-provider-powerdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.