Git Product home page Git Product logo

Comments (3)

mbag avatar mbag commented on June 9, 2024

Priority field in PowerDNS is set in the records field, in the example below 10 mail1.example.com. will have priority set to 10, mail2.exaple.com to 20.

resource "powerdns_record" "test-mx-multi" {
	zone = "sysa.xyz."
	name = "multi.sysa.xyz."
	type = "MX"
	ttl = 60
	records = [ "10 mail1.example.com.", "20 mail2.example.com." ]
}```

Querying DNS server for MX record in the example above will return:

sysa.xyz. 60 IN MX 10 mail1.example.com.
sysa.xyz. 60 IN MX 20 mail2.example.com.

from terraform-provider-powerdns.

kommulu avatar kommulu commented on June 9, 2024

Hi,
that worked great.
Thanks :)

PS: Would be good in the docs too.

from terraform-provider-powerdns.

mbag avatar mbag commented on June 9, 2024

Docs have been updated with this and an example on how to add mutliple records. The PR in question is here: https://github.com/terraform-providers/terraform-provider-powerdns/pull/57

It might take a while until this is visible on official terraform documentation, as they have to build the documentation pipeline for the main documentation website. But this happens a few times a day, so I hope it will propagate published soon.

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.