Add A records with a script when adding a new account
I am wondering if there is any script which i can use to add A records automatically when i create an account on my email server ? Its like when a user adds a domain the script might run a cron or something and automatically add following records to that domains dns zone
mx10.domain.com A 7200 1.1.1.1
mx20.domain.com A 7200 1.1.1.1
Any help is really appreciated
-
no need to make a script just edit your zone templates add mx10.%domain%. IN A 1.1.1.1 mx20.%domain%. IN A 1.1.1.1 0 -
no need to make a script just edit your zone templates add mx10.%domain%. IN A 1.1.1.1 mx20.%domain%. IN A 1.1.1.1
I know i can do that, but there is a reason i am asking about a script or a cron job for every new domain added. I tried a lot searching the web on this but no luck so far, if you know such is possible that will be really great.0 -
Hello @Rohan Bhajekar I am curious what didn't work for you when using DNS Zone Templates. Have you read the documentation here: Edit Zone Templates - Version 78 Documentation - cPanel Documentation ? 0
Please sign in to leave a comment.
Comments
3 comments