Git Product home page Git Product logo

Comments (6)

sabman3 avatar sabman3 commented on September 13, 2024 3

Since the -CreatePtr option is available with the creation of an A or AAAA record, I think we can make this a boolean option. I already have the code partially done for this. Thoughts?

from community.windows.

manuh-L avatar manuh-L commented on September 13, 2024 2

This feature will be added any time in the future?

from community.windows.

MallocArray avatar MallocArray commented on September 13, 2024 1

I'm here for the same request, as the lack of this feature is either making me write some awful block/rescue logic to try to figure out which reverse zone I need to create the PTR in, or I'm rewriting my own module to use Add-DnsServerResourceRecordA so I can use the -CreatePtr flag.

from community.windows.

jborean93 avatar jborean93 commented on September 13, 2024

From @johnboy2 on Oct 21, 2019 18:15

While this sounds great at a surface level, I'm having trouble seeing how this could be done while remaining idempotent (which Ansible requires).

Although the DNS Manager UI can help you to create mirrored PTR and A records at the same time, the resulting artifacts aren't actually linked in any way other than common convention. That's a pretty terrible thing for any algorithm to depend upon, especially when idempotence is required (which it is here).

Eg consider the update case -- where you change the IP address on an A record using an Ansible task with the proposed ptr: yes. On the PTR side, does that mean you only create the new (matching) record? Or does it also imply deleting the old (no longer matching) record? What about cleaning up other stale PTRs that refer to the same hostname? How could it even find them efficiently given that DNS record values are unindexed?

I'm guessing similar problems exist anywhere else where idempotence is required of things that only agree by convention.

Anyway, I'm happy to be proven wrong here; but I think we're going to need much greater clarity on how idempotence can remain enforced around the various corner cases. This shouldn't be a "creation-time only" thing.

from community.windows.

jakubauskas avatar jakubauskas commented on September 13, 2024

Since the -CreatePtr option is available with the creation of an A or AAAA record, I think we can make this a boolean option. I already have the code partially done for this. Thoughts?

Could you share your code for ptr you have? It would be very helpful for everyone

from community.windows.

xd999e avatar xd999e commented on September 13, 2024

This option would be great. Any plans to add this flag in the near future?

from community.windows.

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.