Comments (6)
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.
This feature will be added any time in the future?
from community.windows.
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.
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.
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.
This option would be great. Any plans to add this flag in the near future?
from community.windows.
Related Issues (20)
- iis_webbinding IPv6 Problem
- improper string handling (evaluation) in community.windows.win_timezone
- Security scanners flag tests/integration/targets/win_psmodule_info/files/ansiblevault.0.3.0.nupkg
- user account not set correctly in created scheduled task when user is a domain user.
- Provide ability to add DHCP Options to win_dhcp_lease
- Provide ability to create a DHCP Scope
- Support IPv6 in win_dhcp_lease
- "The DISM PS module needs to be installed, this can be done through the windows-adk chocolately package" HOT 1
- Windows privileges to use the windows.win_dns_record module
- win_iis_webapplication is not idempotent. Absent state does not work as expected.
- Invalid error with the win_unzip module when attempting to unzip a zip file
- win_unzip breaks when using beta Pscx version 4
- win_dns_record: state changed but nothing is done when adding record HOT 3
- win_iis_webapppool cannot add multiple env vars
- Can not create scheduled task that runs only on last day of month
- Win_hotfix module fails to install cumulative update for Windows 11
- win_credential creates credentials for the become user HOT 2
- Unable to Install 'VirtualMachinePlatform' Feature on Windows Server 2022 using win_feature Module HOT 1
- adding "use_system_account" to work with GMSA accounts HOT 1
- win_feature : possibility to bypass WSUS server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.windows.