• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Force new subscriptions to use slave dns instead of master

Jonatan_Grim

New Pleskian
Hello,

How do I change the defaults of the subscriptions DNS?
I tried the DNS Templates in Tools, but that does not seem to fit.

What I want to do is that all new subscriptions should use slave DNS with a pre-defined IP-Record (xxx.xxx.xxx.xxx) instead of master.

How do I do this?

Thanks
- Jonatan
 
You can try to use Event Manager with the event like "Default domain created". As command for this event, you can use

# plesk bin dns

with option --set-slave and maybe something else.
 
You can try to use Event Manager with the event like "Default domain created". As command for this event, you can use

# plesk bin dns

with option --set-slave and maybe something else.

Hi Igor,

I can't seem to find any information explaining how the # plesk bin dns works. I tried to test it through SSH but all I get is:
Code:
Wrong syntax for command's "--set-slave" parameter

exit status 1

I have tried:
# plesk bin dns --set-slave x.x.x.x
# plesk bin dns --set-slave -ip x.x.x.x
# plesk bin dns --set-slave -nameserver x.x.x.x
# plesk bin dns --set-slave -a x.x.x.x

Can you point me in the right direction? Thanks.
 
Have you read correct syntax of command in the output of

# plesk bin dns --help

command?
 
Have you read correct syntax of command in the output of

# plesk bin dns --help

command?

So, I read the help as you suggested and figured out how it worked.
I thought I could set the primary ip along as I set the slave, but that wasnt the case.

I got it to work in terminal by doing this:
# plesk bin dns --set-slave test.com
# plesk bin dns --add test.com -primary 1.1.1.1

But I cant get it to work in event manager.
The command requires the domain between -add and -primary, but how do I set it in the event-command? Is there a variable that I can use in the command?

My current event that is not working:
(The subscription is already slave, so that is not the problem)

mOJeuDE.png
 
Back
Top