Skip to content

Decoupled DNS Server #591

Answered by stefanpejcic
stevebrainng asked this question in Q&A
Discussion options

You must be logged in to vote

Also, each opencli command supports pre and post hooks, so you can easily hook into domain-related actions like domain creation to run your own commands before or after. For example, you can on your in-house dns server create DNS zones, set up nameservers, PTR records, etc.

For example, when a user adds a new domain, the command used is opencli domains-add, so to hook into that, just create a file: /etc/openpanel/openpanel/hooks/post_domains-add.sh - this script will run automatically after a domain is added from the OpenPanel UI.

to run a script before the process, then use pre instead of post in file name: /etc/openpanel/openpanel/hooks/pre_domains-add.sh

also, each attribute is passed …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stevebrainng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants