Closed sjurtf closed 1 year ago
@pavel-z1 what do you think? Will this be possible to implement?
Hi @sjurtf
I checked phpIPAM documentation https://phpipam.net/#subnets
Seems phpIPAM don't have resolveDNS
parameter for subnet API controller or this parameter not documented.
If you provide example of phpIPAM API usage which activate resolve DNS names option I guess we could add it.
Hi, you are right - it is missing from the documentation. (Edit: I opened a PR with phpipam/phpipam to add it to the docs)
We are running phpipam 1.5.3 and the resolveDNS
is present in the API and it is working as expected when I tested it now.
Working notes:
When I call /api/resolveDNS
set to "1"
which matched my expectations and the GUI setting.
I tried to modify it with PATCH, and I was able to confirm that it changed the Resolve DNS names setting in the GUI.
curl --request PATCH \
--url https://<redacted>/api/<appid>/subnets/<subnetid> \
--header 'Content-Type: application/json' \
--header 'token: X' \
--data '{"resolveDNS": "1"}'
Hi @sjurtf Feature was added in this PR https://github.com/lord-kyron/terraform-provider-phpipam/pull/65
Added subnet parameter - resolve_dns
Under the Scan agent settings in phpipam, there are scans that can be enabled.
This provider supports Host Check and Discover new host with these attributes:
My feature request would be to support the option of enabling resolving of DNS names.