• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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