Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a requisition from a DNS Server #7

Open
agalue opened this issue Aug 22, 2019 · 1 comment
Open

Generate a requisition from a DNS Server #7

agalue opened this issue Aug 22, 2019 · 1 comment

Comments

@agalue
Copy link
Owner

agalue commented Aug 22, 2019

It's been a frequent request to be able to connect to a DNS Server, retrieve the list of records and generate a requisition based on the output.

OpenNMS has the DNS Provisioning Adapter, but unfortunately, it uses an over-complicated algorithm to generate a numeric value for the foreign ID, which is not human readable.

On a DNS server, each FQDN is unique, which gives us the ability to set not only the Foreign ID but also the Node Label to be the FQDN obtained from the DNS Server.

The following project can help with the implementation of this feature:

https://github.com/zmap/zdns

@agalue
Copy link
Owner Author

agalue commented Sep 3, 2019

The idea would having commands like this:

onmsctl inventory dns 10.0.0.1 example.com
onmsctl inventory dns --requisition myRecords generate 10.0.0.1 example.com

The user should pass the DNS Server IP or FQDN, the name of the domain from which the A records will be pulled off, and the name of the requisition as a parameter. If the name of the requisition is omitted, the name of domain host will be used.

That will generate a YAML with the requisition, but the format can be changed accordingly.

In this case, the normalized FQDN of each record will be used as Foreign ID and Node Label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant